Skip to content

Files

Latest commit

 

History

History
46 lines (29 loc) · 1.3 KB

README.md

File metadata and controls

46 lines (29 loc) · 1.3 KB

Voxelite Translation Merger

GitHub Action to merge Voxelite's translations into single per-language JSON file. Based on voxelite/json-merge@v1.

Supported language formats:

  • language - en - 2 lower-case characters
  • language variant - en-US - 2 lower-case characters followed by - and 2 upper-case characters

Language variant requires - as the separator, _ is not valid. For more information about those language codes, look at RFC 5646 (example can be found here).

Inputs

in-directory

Required

Path to your directory containing all direct translation files (like en.json) and per-language directories (like en).

out-directory

Required

Directory to write language files (like en.json) into.

Outputs

languages

All mentioned languages, no matter how many translated keys they have.

Languages with no keys are ignored.

Example usage

- name: block.json merging
  uses: voxelite/json-merge@v1
  with:
    in-file: block.json
    in-directory: block
    out-file: out_block.json

For object format (block, item, entity...) look into official documentation.