Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
fix: load language specific labels
Browse files Browse the repository at this point in the history
  • Loading branch information
rofe committed Aug 8, 2021
1 parent 27c4b40 commit 0d99b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sidekick/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@
// i18n
if (!navigator.language.startsWith('en')) {
// look for language file in same directory
const langHref = `${href.substring(0, href.lastIndexOf('/'))}/${navigator.language}.css`;
const langHref = `${href.substring(0, href.lastIndexOf('/'))}/${navigator.language.split('-')[0]}.css`;
appendTag(document.head, {
tag: 'link',
attrs: {
Expand Down

0 comments on commit 0d99b3c

Please sign in to comment.