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

feat(lang): change locale format to ICU #1120

Merged
merged 4 commits into from
Jun 21, 2023
Merged

feat(lang): change locale format to ICU #1120

merged 4 commits into from
Jun 21, 2023

Conversation

limpbrains
Copy link
Collaborator

@limpbrains limpbrains commented Jun 21, 2023

Description

Problem: Transifex doesn't support i18next native file format.
Solution: Use ICU file format for language files
Which causes another problem: it is not expandable, we can't use cool i18next formatters like date or relative time
Solution: add another instance of i18next to format dates and relative time.

ICU file format uses single brackets instead of double, so I'me updating all language file.

Type of change

Refactoring

Tests

No test

@limpbrains limpbrains marked this pull request as ready for review June 21, 2023 13:42
@limpbrains limpbrains requested a review from pwltr June 21, 2023 13:42
src/utils/i18n/locales/en/wallet.json Outdated Show resolved Hide resolved
src/store/actions/wallet.ts Outdated Show resolved Hide resolved
@limpbrains limpbrains merged commit 5275268 into master Jun 21, 2023
3 of 4 checks passed
@limpbrains limpbrains deleted the icu branch June 21, 2023 14:44
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.

None yet

2 participants