diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-02-24 23:18:20 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-02-24 23:18:20 -0400 |
commit | f8bb3f83f37b621a6ace26dbe39c78023facfbbb (patch) | |
tree | 7cb52364f476ad6d055f99e60ee61f8e1946c08d /src/misc-templates.js | |
parent | 5057b24b53f3866cf9f34a6fdfa0d1345c0d8be0 (diff) |
strings - same language code, different build dir
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r-- | src/misc-templates.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js index 3ad1f233..f51d0e5c 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -396,9 +396,9 @@ export function getFooterLocalizationLinks(pathname, { { json: { 'meta.languageName': b } } ) => a < b ? -1 : a > b ? 1 : 0) .map(strings => html.tag('span', html.tag('a', { - href: (strings.code === languages.default.code + href: (strings.baseDirectory === languages.default.baseDirectory ? to('localizedDefaultLanguage' + keySuffix, ...toArgs) - : to('localizedWithBaseDirectory' + keySuffix, strings.code, ...toArgs)) + : to('localizedWithBaseDirectory' + keySuffix, strings.baseDirectory, ...toArgs)) }, strings.json['meta.languageName']))); return html.tag('div', |