Lang for oauth users
This commit is contained in:
parent
47b55267df
commit
08b3289f4d
6 changed files with 42 additions and 25 deletions
8
imports/startup/server/accounts/lang-fallback.js
Normal file
8
imports/startup/server/accounts/lang-fallback.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
const getFallbackLang = (lang) => {
|
||||
if (lang && (lang === 'ast' || lang === 'gl' || lang === 'eu' || lang === 'ca' || lang.match(/^es/))) {
|
||||
return 'es';
|
||||
}
|
||||
return 'en';
|
||||
};
|
||||
|
||||
export default getFallbackLang;
|
||||
Loading…
Add table
Add a link
Reference in a new issue