Skip to content

Commit

Permalink
Merge pull request #1363 from mwiencek/mbs-10579
Browse files Browse the repository at this point in the history
MBS-10579: Unbreak es-es/el-gr translations
  • Loading branch information
mwiencek committed Feb 3, 2020
2 parents bfbcebe + 0c12674 commit 4013bf8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions webpack.client.config.js
Expand Up @@ -62,16 +62,6 @@ function langToPosix(lang) {
return lang.replace(/^([a-zA-Z]+)-([a-zA-Z]+)$/, function (match, l, c) {
l = l.toLowerCase();
c = c.toUpperCase();

/*
* Handle symlinks (see under po/). We want to keep the the result here
* consistent regardless of whether someone has el or el-gr in their
* MB_LANGUAGE setting, for example.
*/
if (/^(?:el_GR|es_ES)$/.test(`${l}_${c}`)) {
return l;
}

return l + '_' + c.toUpperCase();
});
}
Expand Down

0 comments on commit 4013bf8

Please sign in to comment.