(code)
| 189 | |
| 190 | export default { |
| 191 | async set(code) { |
| 192 | code = code?.toLowerCase(); |
| 193 | const lang = langMap[code] || langMap["en-us"]; |
| 194 | const strings = await lang.strings(); |
| 195 | window.strings = strings.default; |
| 196 | }, |
| 197 | list: Object.keys(langMap).map((code) => [code, langMap[code].name]), |
| 198 | getName(code) { |
| 199 | code = code?.toLowerCase(); |