DEV Community

Cover image for Plusin Good for I18 - Auto gen json, ts, js files
Huy
Huy

Posted on

Plusin Good for I18 - Auto gen json, ts, js files

Today I want to introduce you to a pretty good plusin for those working with multilingual apps like i18.

Most libraries like i18 will need us to have a json, ts, or js file,... But if there are many languages, this will be a quite big barrier because we have to manage up to 10 files and it will be pretty difficult with many people working: Don't know if we missed any keywords?

Plugin Link: https://workspace.google.com/marketplace/app/i18n_generate_json_ts_js_file/24868871180

How to use

:

Step 1: Click start for the system to auto generate a template file

Step 2: Pay attention to columns A and B

Column A is the language name in English

Column B is the key in the json file

Columns C,D,.... are the ISO language codes

Note the plugin will process from column C, the header is the file name and you can totally edit the content if Google translates it wrong.

Advantages:

  • Fully utilize the benefits of Google Sheets: Multi-person communication, backup versions, leverage Google Translate and Sheet formulas,...

  • Easy management

  • Generate files in just 1 click

Disadvantages:

  • Slow speed for files larger than 4000 rows

  • Only 3 file structures: Json, js, ts

Top comments (0)