Customization: Translation slugs in JSON
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- json
- Domain
- localization
Research direction
Start by reading the current theme customization JSON and translation handling, then review the originating discussion in pull request 959. Done means agreeing on and implementing a translation-slug structure that removes redundant language sub-keys, supports future nested translations, and preserves customizable default values.
Written by the indexing model from the issue text.
Description
For the json to customize the theme, we could use
translation slugs instead of plain text for values.
Some reasons are:
-
It could simplify things by removing the need for
default,fr,enand similar sub-keys. -
It would also alleviate the burden of updating the full theme configuration when a new language is added, a process currently more involved than maintaining a flat JSON for translations.
-
This shift would also enhance modularity and better separate responsibilities.
-
It would allow translators of crowdin to properly translate the default values.
-
It would reduce the size of the theming file significantly - potentially improving payload transfer speed and overall reactivity of the app
-
It would allow nested translations to be integrated in the future, further reducing complexity and improving flexibility
Originally posted by @rvveber in https://github.com/suitenumerique/docs/pull/959#discussion_r2097689818
- Dominant language
- Python
- Stars
- 16.8k
- Forks
- 638
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 40
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from suitenumerique/docs
-
backend performance
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
suitenumerique/docs#2656 · 1 comment ·
-
✏️ Needs design frontend good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
suitenumerique/docs#2612 · 2 comments ·
-
backend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
suitenumerique/docs#2589 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
suitenumerique/docs#2541 ·
-
backend enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
suitenumerique/docs#2216 ·
All issues in suitenumerique/docs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100