Skip to content

Commit a9dd6e1

Browse files
author
PatrickSachs
committed
Removed locale system
1 parent 83b56c5 commit a9dd6e1

File tree

4 files changed

+0
-35
lines changed

4 files changed

+0
-35
lines changed

assets/locale/DE.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

assets/locale/EN.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Locale.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/components/App.vue

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ import AddTreeElementCommand from "@/commands/AddTreeElementCommand";
199199
import ChangeBackgroundCommand from "@/commands/ChangeBackgroundCommand";
200200
import ChangeWholeTreeCommand from "@/commands/ChangeWholeTreeCommand";
201201
import DestroyTreeElementCommand from "@/commands/DestroyTreeElementCommand";
202-
import Locale, { defaultLocale } from "@/Locale";
203202
import BackgroundSkin from "@/BackgroundSkin";
204203
import TreeType from "@/TreeType";
205204
import uuid from "@/utils/uuid";
@@ -218,7 +217,6 @@ export default class STApp extends Vue {
218217
super();
219218
}
220219
221-
private locale: Locale = defaultLocale();
222220
private strings: {} = {};
223221
private game: Game | null = null;
224222
private scene: TreeDesignerScene | null = null;
@@ -250,15 +248,6 @@ export default class STApp extends Vue {
250248
*/
251249
created() {
252250
this.tutorial = localStorage.getItem("tutorial") !== "true";
253-
fetch(`/assets/locale/${Locale[this.locale]}.json`)
254-
.then(data => data.json())
255-
.then(json => {
256-
console.log("Loaded locale ...", json);
257-
this.strings = json;
258-
if (this.game) {
259-
this.game.cache.json.add("locale", json);
260-
}
261-
});
262251
}
263252
264253
/**

0 commit comments

Comments
 (0)