Skip to content

Commit a53553b

Browse files
fix(i18n): Assume English language in code checks
Updates to the i18n files come delayed from Crowdin. Expecting all translation files to be updated to pass code checks is unrealistic.
1 parent d5053ed commit a53553b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/userscript/source/Engine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export class Engine {
345345
}
346346

347347
iactivity(
348-
i18nLiteral: keyof (typeof i18nData)[SupportedLanguage],
348+
i18nLiteral: keyof (typeof i18nData)["en"],
349349
i18nArgs: Array<number | string> = [],
350350
logStyle?: ActivityClass
351351
): void {
@@ -359,7 +359,7 @@ export class Engine {
359359
}
360360

361361
imessage(
362-
i18nLiteral: keyof (typeof i18nData)[SupportedLanguage],
362+
i18nLiteral: keyof (typeof i18nData)["en"],
363363
i18nArgs: Array<number | string> = []
364364
): void {
365365
this._printOutput("ks-default", "#aa50fe", this.i18n(i18nLiteral, i18nArgs));

0 commit comments

Comments
 (0)