Set portuguese language if user's telegram app is in portuguese

This commit is contained in:
GiovaniFZ 2024-07-25 22:40:06 -03:00
parent c86884774c
commit e140b24deb
6 changed files with 23 additions and 5 deletions

11
commands/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
};