mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-31 16:14:53 +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() {
|
||||
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) {
|
||||
var intl = require('../intl');
|
||||
var key = $(el).attr('data-intl');
|
||||
|
@ -328,4 +331,3 @@ exports.getLevelDropdown = function() {
|
|||
};
|
||||
|
||||
exports.init = init;
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<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: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="src/style/font-awesome.css" type="text/css" charset="utf-8">
|
||||
|
@ -458,7 +459,7 @@
|
|||
<span class="showWhenNotPicked">
|
||||
Pick
|
||||
</span>
|
||||
</a>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue