Fallback moved. Index points to telegran en bot

This commit is contained in:
vjrj 2018-05-10 09:00:05 +02:00
parent 0a8d59bc53
commit 2d19778553
4 changed files with 23 additions and 7 deletions

View 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;