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

Add logic to have separated translations by language #402

Conversation

ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Sep 20, 2024

This PR adds logic to have separated translations by language in JSON files using i18next lib for easier translation maintenance


Basic changes:

  • store translations in one common folder in the root
  • separate translations by language in JSON files using namespaces
  • extend the official i18next-fs-backend plugin to provide the ability to load and merge translations in the bfx-reports-framework
  • provide correct i18next initialization in the main service
  • rework logic to use i18next lib API
  • cleanup redundant yaml translations and js-yaml dependency

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@ezewer ezewer merged commit fa668c0 into bitfinexcom:staging Sep 23, 2024
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.

3 participants