Skip to content

Commit 498ce60

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

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to
1010

1111
## Added
1212

13+
- ✨(frontend) add customization for translations #857
1314
- ✨(back) allow theme customnization using a configuration file #948
1415
- ✨ Add a custom callout block to the editor #892
1516
- 🚩(frontend) version MIT only #911
@@ -20,10 +21,11 @@ and this project adheres to
2021
- 📝(frontend) Update documentation
2122
- ✅(frontend) Improve tests coverage
2223

23-
### Removed
24+
## Removed
2425

2526
- 🔥(back) remove footer endpoint
2627

28+
2729
## [3.2.1] - 2025-05-06
2830

2931
## Fixed

docs/theming.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,18 @@ body {
3030

3131
Then, set the `FRONTEND_CSS_URL` environment variable to the URL of your custom CSS file. Once you've done this, our application will load your custom CSS file and apply the styles, changing the background color to the custom color you specified.
3232

33+
----
3334

35+
# **Custom Translations** 📝
36+
37+
The translations can be overridden from the theme customization file.
38+
39+
### Settings 🔧
40+
41+
```shellscript
42+
THEME_CUSTOMIZATION_FILE_PATH=<path>
43+
```
44+
45+
### Example of JSON
46+
47+
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
"externalLinks": [

0 commit comments

Comments
 (0)