summaryrefslogtreecommitdiff
path: root/core/src/com/ilotterytea/maxoning/MaxonGame.java
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2022-09-03 02:25:11 +0600
committerilotterytea <iltsu@alright.party>2022-09-03 02:25:11 +0600
commit3d8639d62a2c28750654b767fd940cd223c62e32 (patch)
treecea94e151abb079eb8f0941ce6964c1a74c22d42 /core/src/com/ilotterytea/maxoning/MaxonGame.java
parent344f66424c5d94b4443b477ef016730d8615cf91 (diff)
Localization!!!
Diffstat (limited to 'core/src/com/ilotterytea/maxoning/MaxonGame.java')
-rw-r--r--core/src/com/ilotterytea/maxoning/MaxonGame.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/com/ilotterytea/maxoning/MaxonGame.java b/core/src/com/ilotterytea/maxoning/MaxonGame.java
index a410a12..e0a4415 100644
--- a/core/src/com/ilotterytea/maxoning/MaxonGame.java
+++ b/core/src/com/ilotterytea/maxoning/MaxonGame.java
@@ -7,6 +7,7 @@ import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.ilotterytea.maxoning.player.MaxonPlayer;
import com.ilotterytea.maxoning.screens.AssetLoadingScreen;
+import com.ilotterytea.maxoning.utils.I18N;
import com.ilotterytea.maxoning.utils.serialization.GameDataSystem;
import java.io.IOException;
@@ -15,6 +16,7 @@ public class MaxonGame extends Game {
public SpriteBatch batch;
public AssetManager assetManager;
public Preferences prefs;
+ public I18N locale;
private static MaxonGame instance;
@@ -29,6 +31,7 @@ public class MaxonGame extends Game {
public void create () {
batch = new SpriteBatch();
prefs = Gdx.app.getPreferences("Maxoning");
+ locale = new I18N(prefs.getString("lang", "en_us"));
if (!GameDataSystem.exists()) {
try {