webperside / course-erp-backend

We are developing this project on Youtube Live
14 stars 1 forks source link

[FEATURE] Insert default language for user #83

Open hamidsultanzadeh opened 1 year ago

hamidsultanzadeh commented 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

agayevilkin commented 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 ?

hamidsultanzadeh commented 1 year ago

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