Open hamidsultanzadeh opened 1 year ago
In sign-up, after inserting all data, insert a new row into user_configs (crud services are done)
user_configs("DEFAULT_LANGUAGE", "az", [inserted userId])
create new UserConfigConstants on the constants package and move DEFAULT_LANGUAGE inside it
for "az", use languageService.getDefaultLanguage() method
In sign-up, after inserting all data, insert a new row into user_configs (crud services are done)
user_configs("DEFAULT_LANGUAGE", "az", [inserted userId])
create new UserConfigConstants on the constants package and move DEFAULT_LANGUAGE inside it
for "az", use languageService.getDefaultLanguage() method
Is DEFAULT_LANGUAGE a key? and do I need to add this as new column (key) to the user_configs table? Do I need to add new data to user_config to set the default language in Sing-up ?
yes it is a key we'll store default language id for each user in user_configs table. and it is our key to indicate that
In sign-up, after inserting all data, insert a new row into user_configs (crud services are done)
user_configs("DEFAULT_LANGUAGE", "az", [inserted userId])
create new UserConfigConstants on the constants package and move DEFAULT_LANGUAGE inside it
for "az", use languageService.getDefaultLanguage() method