OSDN Git Service
(root)
/
bytom
/
Byone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a398121
)
fixed the Multiligual error, auto update e lang page to ui prefernece
author
Zhiting Lin
<zlin035@uottawa.ca>
Wed, 1 Jul 2020 06:23:42 +0000
(14:23 +0800)
committer
Zhiting Lin
<zlin035@uottawa.ca>
Wed, 1 Jul 2020 06:23:42 +0000
(14:23 +0800)
src/utils/Settings.js
patch
|
blob
|
history
diff --git
a/src/utils/Settings.js
b/src/utils/Settings.js
index
224a99c
..
c70857a
100644
(file)
--- a/
src/utils/Settings.js
+++ b/
src/utils/Settings.js
@@
-1,8
+1,9
@@
export default class Settings {
constructor(){
+ const uiLang = (chrome.i18n.getUILanguage().split('_')[0]).split('-')[0]
this.domains = [];
- this.language =
'ENGLISH
';
+ this.language =
uiLang||'en
';
}
static placeholder(){ return new Settings(); }