mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-01 16:44:30 +02:00
Merge pull request #492 from PanAeon/feature/change-lang-meta-attr
Set html lang and meta http-equiv="content-language" attr on language change
This commit is contained in:
commit
cf8fd169bb
2 changed files with 5 additions and 2 deletions
|
@ -88,6 +88,9 @@ var vcsModeRefresh = function(eventData) {
|
||||||
|
|
||||||
var intlRefresh = function() {
|
var intlRefresh = function() {
|
||||||
if (!window.$) { return; }
|
if (!window.$) { return; }
|
||||||
|
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) {
|
$('span.intl-aware').each(function(i, el) {
|
||||||
var intl = require('../intl');
|
var intl = require('../intl');
|
||||||
var key = $(el).attr('data-intl');
|
var key = $(el).attr('data-intl');
|
||||||
|
@ -328,4 +331,3 @@ exports.getLevelDropdown = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.init = init;
|
exports.init = init;
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<meta property="og:url" content="https://pcottle.github.io/learnGitBranching/index.html?demo"/>
|
<meta property="og:url" content="https://pcottle.github.io/learnGitBranching/index.html?demo"/>
|
||||||
<meta property="og:image" content="https://pcottle.github.io/learnGitBranching/assets/learnGitBranching.png"/>
|
<meta property="og:image" content="https://pcottle.github.io/learnGitBranching/assets/learnGitBranching.png"/>
|
||||||
<meta property="og:description" content="An interactive Git visualization tool to educate and challenge!"/>
|
<meta property="og:description" content="An interactive Git visualization tool to educate and challenge!"/>
|
||||||
|
<meta http-equiv="content-language" content="en">
|
||||||
|
|
||||||
<link rel="stylesheet" href="build/{{styleFile}}" type="text/css" charset="utf-8">
|
<link rel="stylesheet" href="build/{{styleFile}}" type="text/css" charset="utf-8">
|
||||||
<link rel="stylesheet" href="src/style/font-awesome.css" type="text/css" charset="utf-8">
|
<link rel="stylesheet" href="src/style/font-awesome.css" type="text/css" charset="utf-8">
|
||||||
|
@ -458,7 +459,7 @@
|
||||||
<span class="showWhenNotPicked">
|
<span class="showWhenNotPicked">
|
||||||
Pick
|
Pick
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue