-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlangs.js
executable file
·155 lines (155 loc) · 3.35 KB
/
langs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
hmm.storage.i18n = {}
hmm.langNames={
"English":"en",
"Compressed Undardese (surknangdārdyizõ)":"cd",
"toki pona (kepeken sitelen Lasin)":"tok",
//let it be hidden for now
//"toki pona (sitelen pona/linja sike)":"toksp"
}
hmm.storage.i18n.en = {
welcome: "Welcome to HmmOS!",
menu: {
"apps-label": "Apps"
},
apps: {
settings: {
lang: "System language",
name: "Settings"
},
fe:{
goback:"back",
addfile:"Create file",
adddir: "Create folder",
deletefolder:"Delete current folder",
alreadyexists:"A file/folder with that name already exists",
namefile:"Enter a name for your file",
namedir:"Enter a name for your folder"
},
store:{
download:"Download"
}
},
ui:{ //general ui related things
cancel:"Cancel",
ok:"OK",
save:"Save",
delete:"Delete",
yes:"Yes",
no:"No",
create:"Create",
use: "Use %{thing}"
}
}
hmm.storage.i18n.cd = {
welcome: "HmmOSk wangõ!",
menu: {
"apps-label": "selīng"
},
apps: {
settings: {
lang: "kãiod moi",
name: "māthrdhng"
},
fe:{
goback:"pnād",
addfile:"kōp sey",
adddir: "kōpure sey",
deletefolder:"ikōpureyałi",
alreadyexists:"apērlaor kōplna kōpurærknvērk",
namefile:"kōpkor pēr thāng",
namedir:"kōpurekor pēr thāng"
},
store:{
download:"padhyerak"
}
},
ui:{
cancel:"vænã",
ok:"ser",
save:"padhpī",
delete:"ałi",
yes:"ā~",
no:"lle",
create:"sey"
}
}
hmm.storage.i18n.tok = {
welcome: "o kama pona tawa ilo Imosu",
menu: {
"apps-label": "ilo"
},
apps: {
settings: {
lang: "toki",
name: "ijo pi ante ilo"
},
fe: {
goback: "o tawa pini",
addfile: "o pali e lipu",
adddir: "o pali e poki",
deletefolder: "o pakala e poki ni",
alreadyexists: "lipu anu poki pi nimi ni li lon. o pana e nimi ante",
namefile: "o pana e nimi tawa lipu sina",
namedir: "o pana e nimi tawa poki sina"
},
store: {
download: "o kama jo e ni"
}
},
ui: {
cancel: "wile ala",
ok: "pona",
save: "o awen e ni",
delete: "o pakala",
yes: "lon",
no: "ala",
create: "o pali"
}
}
/*
hmm.storage.i18n.toksp = {
welcome: "kama+pona tawa ilo [_ike+mute_oko+sina_utala]",
menu: {
"apps-label": "ilo"
},
apps: {
settings: {
lang: "toki",
name: "ijo+tawa ante"
},
fe: {
goback: "o tawa pini",
addfile: "o pali e lipu",
adddir: "o pali e poki",
deletefolder: "o pakala e poki+ni",
alreadyexists: "lipu anu poki pi nimi+ni li lon. o pana e nimi+ante",
namefile: "o pana e nimi+tawa lipu+sina",
namedir: "o pana e nimi+tawa poki+sina"
},
store: {
download: "o lanpan e ni"
}
},
ui: {
cancel: "wile ala",
ok: "pona",
save: "o awen e ni",
delete: "o pakala",
yes: "lon",
no: "ala",
create: "o pali"
}
}*/
hmm.switchFont=(url)=>{
let s=document.createElement('style')
s.innerHTML=`
@font-face{
font-family: cust;
src:url("${url}");
}
*:not(.material-icons){
font-family: cust, system-ui, sans-serif !important;
}
`
document.body.appendChild(s)
}