1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-22 16:23:12 +02:00

localizing is now pretty nice

This commit is contained in:
Pomax
2017-02-18 13:45:26 -08:00
parent 0fda4e7ab0
commit 4808a59357
53 changed files with 3428 additions and 1748 deletions

View File

@@ -1,12 +1,15 @@
var enData = require("LocalizedContent");
var Locale = function(locale) {
var Locale = function() {
this.data = {};
this.locale = locale || "en-GB";
this.data = enData;
};
Locale.prototype = {
getSectionLocale: function(key) {
return this.data[key].locale;
},
getContent: function(key, handler) {
return this.data[key].getContent(handler);
},