EventMapper/assets/scripts/KaplayMap/lang.js

18 lines
258 B
JavaScript
Raw Normal View History

2024-06-04 22:54:40 +00:00
import localization from "./localization.js";
export class LangManager {
2024-06-05 07:30:05 +00:00
#lang;
2024-06-04 22:54:40 +00:00
constructor(lang) {
2024-06-05 07:30:05 +00:00
this.#lang = lang;
2024-06-04 22:54:40 +00:00
}
2024-06-05 07:30:05 +00:00
get currentLocalization() {
return localization.get(this.#lang);
2024-06-04 22:54:40 +00:00
}
2024-06-05 07:30:05 +00:00
get langCode() {
return this.#lang;
2024-06-04 22:54:40 +00:00
}
}