mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
Small fix - replace regex with string split
This commit is contained in:
parent
d26d9c4674
commit
ff37a369da
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ var vcsModeRefresh = function(eventData) {
|
||||||
|
|
||||||
var intlRefresh = function() {
|
var intlRefresh = function() {
|
||||||
if (!window.$) { return; }
|
if (!window.$) { return; }
|
||||||
var countryCode = LocaleStore.getLocale().replace(/_(.*)$/i, "");
|
var countryCode = LocaleStore.getLocale().split("_")[0];
|
||||||
$("html").attr('lang', countryCode);
|
$("html").attr('lang', countryCode);
|
||||||
$("meta[http-equiv='content-language']").attr("content", countryCode);
|
$("meta[http-equiv='content-language']").attr("content", countryCode);
|
||||||
$('span.intl-aware').each(function(i, el) {
|
$('span.intl-aware').each(function(i, el) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue