mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +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() {
|
||||
if (!window.$) { return; }
|
||||
var countryCode = LocaleStore.getLocale().replace(/_(.*)$/i, "");
|
||||
var countryCode = LocaleStore.getLocale().split("_")[0];
|
||||
$("html").attr('lang', countryCode);
|
||||
$("meta[http-equiv='content-language']").attr("content", countryCode);
|
||||
$('span.intl-aware').each(function(i, el) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue