Skip to content

Commit ed8f34a

Browse files
Dragonissergitbook-bot
authored andcommitted
GITBOOK-107: change request with no subject merged in GitBook
1 parent d090525 commit ed8f34a

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

technical-documentation/contributing-to-translations.md

+47-1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,51 @@ Then translate all strings in the file.
3030
Do not change the key words such as the underline and similar coloured in green. ![](../.gitbook/assets/image.png)
3131
{% endhint %}
3232

33-
Then create a pull request like [https://github.com/tiltedphoques/TiltedEvolution/pull/573](https://github.com/tiltedphoques/TiltedEvolution/pull/573) with your new localisation file.
33+
Further you need to update the following file with the language you've just added
3434

35+
{% embed url="https://github.com/tiltedphoques/TiltedEvolution/blob/dev/Code/skyrim_ui/src/app/transloco-root.module.ts" %}
36+
37+
Below you can see the whole array of languages (it might be outdated).
38+
39+
```typescript
40+
availableLangs: [
41+
{ id: 'en', label: 'English' },
42+
{ id: 'de', label: 'Deutsch' },
43+
{ id: 'ru', label: 'Русский' },
44+
{ id: 'fr', label: 'Français' },
45+
{ id: 'zh-CN', label: '中文(中国)' },
46+
{ id: 'nl', label: 'Nederlands' },
47+
{ id: 'es', label: 'Español' },
48+
{ id: 'ko', label: '한국어' },
49+
{ id: 'tr', label: 'Türkçe' },
50+
{ id: 'cs', label: 'Čeština' },
51+
{ id: 'pl', label: 'Polski' },
52+
{ id: 'overwrite', label: 'Custom' },
53+
],
54+
```
55+
56+
To add your newly added language to the ingame selection, you need to duplicate one of the lines and adjust both the id and the label. Below is an example how the line could look like and how it would look like in the whole array.
57+
58+
```typescript
59+
{ id: 'da', label: 'Dansk' },
60+
```
61+
62+
```typescript
63+
availableLangs: [
64+
{ id: 'en', label: 'English' },
65+
{ id: 'de', label: 'Deutsch' },
66+
{ id: 'ru', label: 'Русский' },
67+
{ id: 'fr', label: 'Français' },
68+
{ id: 'zh-CN', label: '中文(中国)' },
69+
{ id: 'nl', label: 'Nederlands' },
70+
{ id: 'es', label: 'Español' },
71+
{ id: 'ko', label: '한국어' },
72+
{ id: 'tr', label: 'Türkçe' },
73+
{ id: 'cs', label: 'Čeština' },
74+
{ id: 'pl', label: 'Polski' },
75+
{ id: 'da', label: 'Dansk' },
76+
{ id: 'overwrite', label: 'Custom' },
77+
],
78+
```
79+
80+
Then create a pull request like [https://github.com/tiltedphoques/TiltedEvolution/pull/671](https://github.com/tiltedphoques/TiltedEvolution/pull/671) with your new localisation file.

0 commit comments

Comments
 (0)