Fallback moved. Index points to telegran en bot
This commit is contained in:
parent
0a8d59bc53
commit
2d19778553
4 changed files with 23 additions and 7 deletions
9
imports/modules/lang-fallback.js
Normal file
9
imports/modules/lang-fallback.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
const getFallbackLang = (lang) => {
|
||||
if (lang && (lang === 'ast' || lang === 'gl' || lang === 'eu' ||
|
||||
lang === 'es' || lang === 'ca' || lang.match(/^es-/))) {
|
||||
return 'es';
|
||||
}
|
||||
return 'en';
|
||||
};
|
||||
|
||||
export default getFallbackLang;
|
||||
Loading…
Add table
Add a link
Reference in a new issue