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:
@@ -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);
|
||||
},
|
||||
|
Reference in New Issue
Block a user