Skip to content

Commit

Permalink
update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
sk5s committed Jan 25, 2022
1 parent a1090dc commit 7542f4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ function getLanguage() {
let browser = navigator.language
if (!user_selected_lang) {
if (browser.includes('zh') || browser.includes('en')) {
return browser
if (browser.includes('zh')) {
return 'zh'
} else {
return 'en'
}
} else {
return 'en'
}
Expand Down
2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const version = '0.6.0'
const version = '0.7.0'
const message = 'hi, alsoweather url has been changed to https://sk5s.cyou/alsoweather'

self.addEventListener('install', (e) => {
Expand Down

0 comments on commit 7542f4d

Please sign in to comment.