mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-18 06:21:26 +02:00
sections 1-10
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
var enData = require('../locales/en-GB/content.js');
|
||||
|
||||
class Locale {
|
||||
constructor(locale) {
|
||||
this.data = {};
|
||||
this.locale = locale || "en-GB";
|
||||
this.data = enData;
|
||||
}
|
||||
var Locale = function(locale) {
|
||||
this.data = {};
|
||||
this.locale = locale || "en-GB";
|
||||
this.data = enData;
|
||||
};
|
||||
|
||||
getContent(key, handler) {
|
||||
Locale.prototype = {
|
||||
getContent: function(key, handler) {
|
||||
return this.data[key].getContent(handler);
|
||||
}
|
||||
},
|
||||
|
||||
getTitle(key) {
|
||||
getTitle: function(key) {
|
||||
return this.data[key].title;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = Locale;
|
||||
|
Reference in New Issue
Block a user