aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/i18n.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-49/+0
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-1/+1
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* chore: remove old pages, components, helpers and typesArmand Philippot2022-04-291-1/+1
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* refactor(config): move config from config dir to utilsArmand Philippot2022-01-291-2/+2
|
* chore: replace lingui functions with react-intlArmand Philippot2022-01-291-1/+22
|
* chore(i18n): replace i18n provider and helpersArmand Philippot2022-01-291-75/+17
|
* fix: handle translation with linguiArmand Philippot2022-01-281-22/+72
| | | | | | | | The previous method was not working so I tried a different approach. Translation is loaded but I'm still getting warnings: * Plurals for locale undefined aren't loaded * Text content did not match I can't figure how to fix them...
* refactor(config): move defaultLocale as property of config.localesArmand Philippot2022-01-191-1/+2
| | | | | I will need the country code, so I think it makes more sense to gather them inside the same property.
* chore: load i18n translations using lingui providerArmand Philippot2021-12-131-0/+35