summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2024-01-19 11:54:00 +0900
committerGitHub <noreply@github.com>2024-01-19 11:54:00 +0900
commitd85085d16fb6952e742eeca38b98f9442b7ec984 (patch)
tree36abec616f3b9c76b456c1288e48f331b6a544f3 /packages/frontend/src/scripts
parentrefactor: fully typed locales (#13033) (diff)
downloadsharkey-d85085d16fb6952e742eeca38b98f9442b7ec984.tar.gz
sharkey-d85085d16fb6952e742eeca38b98f9442b7ec984.tar.bz2
sharkey-d85085d16fb6952e742eeca38b98f9442b7ec984.zip
refactor: style
Diffstat (limited to 'packages/frontend/src/scripts')
-rw-r--r--packages/frontend/src/scripts/i18n.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/scripts/i18n.ts b/packages/frontend/src/scripts/i18n.ts
index 55b5371950..3366f3eac3 100644
--- a/packages/frontend/src/scripts/i18n.ts
+++ b/packages/frontend/src/scripts/i18n.ts
@@ -48,7 +48,7 @@ export class I18n<T extends ILocale> {
}
if (typeof value === 'string') {
- const parameters = Array.from(value.matchAll(/\{(\w+)\}/g)).map(([, parameter]) => parameter);
+ const parameters = Array.from(value.matchAll(/\{(\w+)\}/g), ([, parameter]) => parameter);
if (parameters.length) {
console.error(`Missing locale parameters: ${parameters.join(', ')} at ${String(p)}`);