forked from urdt/ussd
Merge pull request 'fix: language change' (#242) from language-change-fix into master
Reviewed-on: urdt/ussd#242
This commit is contained in:
commit
d2fce05461
@ -1,9 +1,9 @@
|
|||||||
package utils
|
package utils
|
||||||
|
|
||||||
var isoCodes = map[string]bool{
|
var isoCodes = map[string]bool{
|
||||||
"eng": true, // English
|
"eng": true, // English
|
||||||
"swa": true, // Swahili
|
"swa": true, // Swahili
|
||||||
|
"default": true, // Default language: English
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsValidISO639(code string) bool {
|
func IsValidISO639(code string) bool {
|
||||||
|
@ -5,6 +5,6 @@ CATCH pin_entry flag_account_authorized 0
|
|||||||
MOUT english 1
|
MOUT english 1
|
||||||
MOUT kiswahili 2
|
MOUT kiswahili 2
|
||||||
HALT
|
HALT
|
||||||
INCMP set_default 1
|
INCMP set_eng 1
|
||||||
INCMP set_swa 2
|
INCMP set_swa 2
|
||||||
INCMP . *
|
INCMP . *
|
||||||
|
4
services/registration/set_default.vis
Normal file
4
services/registration/set_default.vis
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
LOAD set_language 6
|
||||||
|
RELOAD set_language
|
||||||
|
CATCH terms flag_account_created 0
|
||||||
|
MOVE language_changed
|
Loading…
Reference in New Issue
Block a user