Moved language check to plugins folder
This commit is contained in:
parent
b1e1394071
commit
e2e5eb6ca3
7 changed files with 6 additions and 6 deletions
11
plugins/checklang.js
Normal file
11
plugins/checklang.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
function getStrings(languageCode) {
|
||||
if (languageCode === 'pt-br') {
|
||||
return require('../locales/portuguese.json');
|
||||
} else {
|
||||
return require('../locales/english.json');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getStrings
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue