Fixed a bug checking translated string keys (#2082)

Fixed a bug checking translated string keys

Suppress the following warning message in your browser.
```
Language zh-cn: missing messages for keys:
locale
label
messages
```

### Change Type

- [x] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version
This commit is contained in:
Kewell 2023-10-17 16:29:43 +08:00 committed by GitHub
parent 59129e269d
commit 47e6e4c25a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ export async function fetchTranslation(
const missing: string[] = [] const missing: string[] = []
for (const key in EN_TRANSLATION) { for (const key in EN_TRANSLATION.messages) {
if (!messages[key as TLUiTranslationKey]) { if (!messages[key as TLUiTranslationKey]) {
missing.push(key) missing.push(key)
} }