Skip to content

Commit aec1dd0

Browse files
committed
Document tsconfig.json for theme translations
1 parent db137f9 commit aec1dd0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/topics/Translations.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ As a prerequisite, the [`get_translations`](https://github.com/qwc-services/qwc-
2020
...
2121
```
2222

23+
Also, ensure a `tsconfig.json` file exists in in `volumes/qwc2/translations` containing the list of translatable languages, for example:
24+
```
25+
{
26+
"languages": [
27+
"de-DE",
28+
"de-CH",
29+
"en-US",
30+
"it-IT"
31+
]
32+
}
33+
```
34+
2335
Then, to localize a theme:
2436

2537
1. In `QGIS → Project Properties → General`, generate a project translation file by selecting the source language and pressing `Generate TS File`.

0 commit comments

Comments
 (0)