mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00

* Update README.md Now we don't have config.env anymore, we now use config.json inside props folder * Add portuguese.json * Set portuguese language if user's telegram app is in portuguese * oh fudge, I forgot this one --------- Co-authored-by: GiovaniFZ <giovanifinazzi@gmail.com>
11 lines
233 B
JavaScript
11 lines
233 B
JavaScript
function getStrings(languageCode) {
|
|
if (languageCode === 'pt-br') {
|
|
return require('../locales/portuguese.json');
|
|
} else {
|
|
return require('../locales/english.json');
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
getStrings
|
|
}; |