Skip to content

Commit dc06315

Browse files
committed
📝(documentation) adds customization for translations
Part of customization PoC Signed-off-by: Robin Weber <[email protected]>
1 parent f4ad26a commit dc06315

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to
88

99
## [Unreleased]
1010

11+
### Added
12+
13+
- ✨(frontend) add customization for translations #857
14+
1115
## [3.3.0] - 2025-05-06
1216

1317
### Added

docs/theming.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,18 @@ Below is a visual example of a configured footer ⬇️:
5353

5454
![Footer Configuration Example](./assets/footer-configurable.png)
5555

56+
----
57+
58+
# **Custom Translations** 📝
59+
60+
The translations can be partially overridden from the theme customization file.
61+
62+
### Settings 🔧
63+
64+
```shellscript
65+
THEME_CUSTOMIZATION_FILE_PATH=<path>
66+
```
67+
68+
### Example of JSON
5669

70+
The json must follow some rules: https://github.com/suitenumerique/docs/blob/main/src/helm/env.d/dev/configuration/theme/demo.json

src/helm/env.d/dev/configuration/theme/demo.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"translations": {
3+
"en": {
4+
"translation": {
5+
"Docs": "MyDocs",
6+
"New doc": "+"
7+
}
8+
}
9+
},
210
"footer": {
311
"default": {
412
"logo": {

0 commit comments

Comments
 (0)