Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: i18n build and ResourceBundle #720

Merged
merged 28 commits into from
Aug 22, 2019
Merged

Conversation

ilhan007
Copy link
Member

@ilhan007 ilhan007 commented Aug 8, 2019

  • remove USED_KEYS.txt as we have the i18n-defaults.js auto generated.
  • remove i18n-transform.sh script as we get the translations process setup and will receive translations regularly.
  • remove all src/messagebundle_*.json files, before produced with i18n-transform.sh
  • new i18n build, based on the messagebundle_en.properties files, generating JSON files for all languages
    Example:
    messagebundle_en.json => {CARD_LABEL: "card", SWITCH_ON: "On", SWITCH_OFF: "Off"}
  • refactor greatly the base/ResourceBundle, which does not import core/ResourceBundle anymore
  • reuse only the following methods: formatMessage, normalize, nextFallbackLocale
  • update the MessageBundleAssets.js to import the generated jsons.

@ilhan007 ilhan007 changed the title POC: ResourceBundle no longer use the core/ResourceBundle class chore: ResourceBundle no longer use the core/ResourceBundle class Aug 14, 2019
@ilhan007 ilhan007 changed the title chore: ResourceBundle no longer use the core/ResourceBundle class refactor: i18n build and ResourceBundle Aug 21, 2019
vladitasev
vladitasev previously approved these changes Aug 21, 2019
@ilhan007 ilhan007 merged commit 4ec2eb2 into master Aug 22, 2019
@ilhan007 ilhan007 deleted the translation-refactoring branch August 22, 2019 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants