mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
Update checklang to recognize 'pt' and 'pt-br'
This commit is contained in:
parent
b354c9497a
commit
e95671d3be
@ -1,5 +1,5 @@
|
|||||||
function getStrings(languageCode) {
|
function getStrings(languageCode) {
|
||||||
if (languageCode === 'pt-br') {
|
if (languageCode === 'pt' || 'pt-br') {
|
||||||
return require('../locales/portuguese.json');
|
return require('../locales/portuguese.json');
|
||||||
} else {
|
} else {
|
||||||
return require('../locales/english.json');
|
return require('../locales/english.json');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user