globalizejs / globalizejs/globalize

MessageFormat Module - How to Manage Translation Files In Practice

Open
#902 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.8k
Forks
585
PR merge metrics
No merged PRs in 30d

Description

I am new to globalizejs. I am trying to figure out the most appropriate workflow to manage translation files. Say initially I create a translation file for locale A, I then compile it into a JavaScript module using the messageformat module. Now I want to add support for a new locale to my application (locale B). My questions are:

1. Is there a way to automatically generate a "pseudo-translation" file for the new locale (a file containing the keys of the localeA file and the only thing needed is to replace the values)
2. Initially, the first point could be achieved by copy-and-pasting the locale A translation file, however things become more complicated as I continue to develop my application and add entries to the locale A translation file. How can I ensure that I do not forget to add the new entries to the locale B file? Is there any tool helping keep everything in sync? That would be awesome.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.