Feature(langauge): Make client history language aware

Remove need for language aware links
This commit is contained in:
Berkeley Martinez
2016-06-20 21:01:14 -07:00
parent 1da593df26
commit 95aab958aa
11 changed files with 98 additions and 53 deletions

View File

@@ -1,9 +1,11 @@
import supportedLanguages from '../../common/utils/supported-languages';
import
supportedLanguages,
{ langTagRegex }
from '../../common/utils/supported-languages';
import passthroughs from '../utils/lang-passthrough-urls';
import debug from 'debug';
const log = debug('fcc:middlewares:lang');
const langTagRegex = /^[a-z]{2}(?:-[a-zA-Z]{2,3})?$/;
const toLowerCase = String.prototype.toLowerCase;
// redirect(statusOrUrl: String|Number, url?: String) => Void