liveahero-community / translations

Raw data and translated text of LIVE A HERO.
1 stars 1 forks source link
live-a-hero

Current version

APP_VERSION    MASTER_VERSION


GitHub Actions (automation)

Provide the text data (multi-languages)


Update master data automation


How to contribute (for translators)

Edit translations/<locale>/<filename>.tsv.

Note

Don't edit files in master-data/, these files are generated by program.


Workflow (for developers)

  1. Download official ja-JP master data
    • Tool: download:official-master-data
  2. Export first series .tsv files that based on ja-JP master data
    • Tool: translate:gen-tsv
  3. Upload to Google Drive, then create sheets by different datatype and locale
    • example sheets: skills-ja_JP, skills-zh_TW, etc.
  4. Translate (edit) on the sheets
  5. Download the translated data from cloud
    • Tool: download:translation-tsv
  6. Translate zh-TW to zh-CN
    • Tool: translate:tw2s
  7. Export formatted data
    • Tool: translate:gen-master-json
  8. Overwrite catalog data (biography of characters)
    • Tool: translate:gen-catalog-data
  9. Bundle all master data JSON into one each locale
    • Tool: bundle:master-data
  10. Update main project

Tools (for developers)

download-official-master-data

Download official master data (ja-JP) with current version.

yarn download:official-master-data

translate-gen-tsv

Convert the JSON of master data into .tsv files.

# locale: zh-TW, ja-JP
yarn translate:gen-tsv <locale>

download-translation-tsv

Download translated .tsv files from cloud.

yarn download:translation-tsv

translate-tw2s

Translate translations/zh-TW/* to translations/zh-CN/*.

yarn translate:tw2s

translate-gen-master-json

Transform translated .tsv files to master data JSON.

yarn translate:gen-master-json

translate-gen-catalog-data

Transform translated detail.properties files to catalogs in Japanese.properties.

yarn translate:gen-catalog-data

bundle-master-data

Bundle all master data into bundles.compressed.json, must use jsonpack to uppack that.

yarn bundle:master-data