Moved language check to plugins folder

This commit is contained in:
lucmsilva651 2024-07-25 23:57:38 -03:00
parent b1e1394071
commit e2e5eb6ca3
No known key found for this signature in database
GPG key ID: D9B075FC6DC93985
7 changed files with 6 additions and 6 deletions

11
plugins/checklang.js Normal file
View 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
};