Skip to content

Commit

Permalink
use lang html attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
vankasteelj committed Nov 24, 2024
1 parent ccb275b commit 06d6b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html style="background: #1d1d1d; color: #ccc;">
<html lang="en" style="background: #1d1d1d; color: #ccc;">

<head>
<meta charset="UTF-8">
Expand Down
1 change: 1 addition & 0 deletions app/js/utils/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const Localization = {
// AUTO: translate the HTML based on <i18n> tags and .i18n classes
localizeApp: () => {
console.info('Using locale:', i18n.getLocale())
document.documentElement.lang = i18n.getLocale()

const t = document.getElementsByTagName('i18n')
const c = document.getElementsByClassName('i18n')
Expand Down

0 comments on commit 06d6b66

Please sign in to comment.