fix(i18n): prepare for Lokalise

This commit is contained in:
Michael Zetterberg
2025-01-13 16:38:18 +01:00
parent bcae63e3fc
commit dd71ff8fa7
21 changed files with 78 additions and 58 deletions

View File

@@ -142,6 +142,8 @@ This was inspired by [server-only-context](https://github.com/manvalls/server-on
The id and the message need to be the same in all the dictionaries.
This prepares for a future codemod that will transform the ids into default messages.
❌ Do not do this:
```typescript
@@ -172,7 +174,7 @@ This was inspired by [server-only-context](https://github.com/manvalls/server-on
- **Add translations to all local JSON dictionaries.**
Even if the message is untranslated when adding it. Even if the id is used as a fallback when a translation is mising, the fallback does not get interpolated.
Even if the message is untranslated when adding it. Even if the id is used as a fallback when a translation is missing, the fallback does not get interpolated.
❌ Do not do this: