@@ -9,7 +9,18 @@ package com.almasb.fxgl.localization
9
9
/* *
10
10
* @author Almas Baimagambetov (almaslvl@gmail.com)
11
11
*/
12
- class Language (name : String ) {
12
+ class Language
13
+ @JvmOverloads constructor (
14
+
15
+ /* *
16
+ * In English.
17
+ */
18
+ name: String ,
19
+
20
+ /* *
21
+ * In the target language.
22
+ */
23
+ val nativeName: String = name) {
13
24
14
25
val name = name.uppercase()
15
26
@@ -30,12 +41,12 @@ class Language(name: String) {
30
41
@JvmField val ESTONIAN = Language (" ESTONIAN" )
31
42
@JvmField val FILIPINO = Language (" FILIPINO" )
32
43
@JvmField val FINNISH = Language (" FINNISH" )
33
- @JvmField val FRENCH = Language (" FRENCH" )
34
- @JvmField val GERMAN = Language (" GERMAN" )
44
+ @JvmField val FRENCH = Language (" FRENCH" , " Français " )
45
+ @JvmField val GERMAN = Language (" GERMAN" , " Deutsch " )
35
46
@JvmField val GREEK = Language (" GREEK" )
36
47
@JvmField val HEBREW = Language (" HEBREW" )
37
48
@JvmField val HINDI = Language (" HINDI" )
38
- @JvmField val HUNGARIAN = Language (" HUNGARIAN" )
49
+ @JvmField val HUNGARIAN = Language (" HUNGARIAN" , " Magyar " )
39
50
@JvmField val INDONESIAN = Language (" INDONESIAN" )
40
51
@JvmField val ITALIAN = Language (" ITALIAN" )
41
52
@JvmField val JAPANESE = Language (" JAPANESE" )
@@ -44,7 +55,7 @@ class Language(name: String) {
44
55
@JvmField val NORWEGIAN = Language (" NORWEGIAN" )
45
56
@JvmField val PORTUGUESE = Language (" PORTUGUESE" )
46
57
@JvmField val ROMANIAN = Language (" ROMANIAN" )
47
- @JvmField val RUSSIAN = Language (" RUSSIAN" )
58
+ @JvmField val RUSSIAN = Language (" RUSSIAN" , " Русский " )
48
59
@JvmField val SLOVAK = Language (" SLOVAK" )
49
60
@JvmField val SPANISH = Language (" SPANISH" )
50
61
@JvmField val SWEDISH = Language (" SWEDISH" )
0 commit comments