Commit f60bd8b
github-actions
gh-pages build: i18n: update coverage to auto-detect browser languages (OverlayPlugin#946)
f285d76: `coverage.ts` detects language
from the web browser.
c0cf1de: fix Korean translation
8cbefb1: remove `languagesArr`
parameter from `browserLanguagesToLang` function.
## Removing `languagesArr` parameter
### Current Situation
The `browserLanguagesToLang` function has a comment saying it only takes
`navigator.languages` as input. But it still receives this value as a
parameter, which is unnecessary.
### Option 1: Remove the parameter
If the function only handles `navigator.languages`, we can remove the
parameter and use `navigator.languages` directly inside the function.
### Option 2: Generalize the function
If we want to support other locale arrays beyond `navigator.languages`,
we could keep the parameter and rename the function to `localesToLang`.
This makes it clear that the function converts any locale array to a
cactbot language.
---
This PR implements Option 1. Let me know if Option 2 is preferred. e14eec10 parents commit f60bd8b
226 files changed
Lines changed: 708909 additions & 0 deletions
File tree
- resources
- ffxiv
- jobs
- status
- images
- sounds
- BigWigs
- Overwatch
- freesound
- amy
- ui
- common
- config
- dps
- rdmty
- xephero
- eureka
- jobs
- oopsyraidsy
- pullcounter
- radar
- raidboss
- skins
- dorgrin
- jwidea
- lippe
- test
- util
- coverage
- logtools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments