fix: language change

This commit is contained in:
Carlosokumu 2025-01-03 11:26:56 +03:00
parent 58edfa01a2
commit 162e6c1934
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953
3 changed files with 8 additions and 4 deletions

View File

@ -1,9 +1,9 @@
package utils
var isoCodes = map[string]bool{
"eng": true, // English
"swa": true, // Swahili
"eng": true, // English
"swa": true, // Swahili
"default": true, // Default language: English
}
func IsValidISO639(code string) bool {

View File

@ -5,6 +5,6 @@ CATCH pin_entry flag_account_authorized 0
MOUT english 1
MOUT kiswahili 2
HALT
INCMP set_default 1
INCMP set_eng 1
INCMP set_swa 2
INCMP . *

View File

@ -0,0 +1,4 @@
LOAD set_language 6
RELOAD set_language
CATCH terms flag_account_created 0
MOVE language_changed