Implement localization
This commit is contained in:
parent
5016ced432
commit
506c0203d9
12 changed files with 218 additions and 36 deletions
9
assets/js/post-l10n.js
Normal file
9
assets/js/post-l10n.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
const userLang = navigator.language || navigator.userLanguage
|
||||
let lang = userLang.includes('pt') ? 'pt' : 'en'
|
||||
console.log('loaded post-l10n.js', lang)
|
||||
|
||||
if (lang != 'pt') {
|
||||
const footer_back = document.getElementById('footer-back-link')
|
||||
console.log(footer_back)
|
||||
footer_back.innerText = 'Back'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue