Skip to content

Commit

Permalink
feat: Integrate accent
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed May 29, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
chraibi Mohcine Chraibi
1 parent f06ad5d commit 7a956ae
Showing 8 changed files with 469 additions and 1,961 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -272,3 +272,17 @@ To configure Keycloak:
- NEXTAUTH_SECRET: Any string, can be "secret" locally
[keycloak-admin]: http://localhost:8080/admin/master/console/#/
## Translations
Translations are managed via [Accent](https://accent.interactivethings.io). Right now, you need to
manually pull and push the translations. The process goes:
1. Edit components, add `<Trans />` and `t()`
2. Run `yarn locales:extract` to write the `en/messages.po`
3. Run `yarn locales:push --dry-run` to review what will be pushed to Accent
4. Run `yarn locales:push` to push the new translations to Accent
5. Edit the new messages in Accent web UI `yarn locales:browse`
6. Run `yarn locales:pull` to get the messages.po for all translated languages
In the future, we might want to integrate further Accent so that it opens pull requests.
11 changes: 11 additions & 0 deletions accent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"apiUrl": "https://accent.interactivethings.io",
"files": [
{
"namePattern": "file",
"format": "gettext",
"source": "app/locales/en/messages.po",
"target": "app/locales/%slug%/%document_path%.po"
}
]
}
Loading

0 comments on commit 7a956ae

Please sign in to comment.