You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: technical-documentation/contributing-to-translations.md
+47-1
Original file line number
Diff line number
Diff line change
@@ -30,5 +30,51 @@ Then translate all strings in the file.
30
30
Do not change the key words such as the underline and similar coloured in green. 
31
31
{% endhint %}
32
32
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
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