From 5b21644b6484cecfa581059153eef36cf254b04c Mon Sep 17 00:00:00 2001 From: David Allison <62114487+david-allison@users.noreply.github.com> Date: Wed, 4 Mar 2026 16:16:59 +0000 Subject: [PATCH] style(crowdin): fix ESLint 10 issues ``` /home/runner/work/Anki-Android/Anki-Android/tools/localization/src/update.ts 166:13 error This assigned value is not used in subsequent statements no-useless-assignment ``` `cd tools/localization && yarn lint` Unblocks PR 20313 --- tools/localization/src/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/localization/src/update.ts b/tools/localization/src/update.ts index 448bb0d8e4da..3a96b99b326f 100644 --- a/tools/localization/src/update.ts +++ b/tools/localization/src/update.ts @@ -163,7 +163,7 @@ export async function updateI18nFiles() { // but this comment hopefully clarifies for the reader that BCP47 / ISO-639-2 3-letter language tags do work in practice. // // The codes are not case-sensitive; the r prefix is used to distinguish the region portion. You cannot specify a region alone. - let androidLanguages = []; + let androidLanguages: string[]; const languageCode = language.split("-", 1)[0]; if (LOCALIZED_REGIONS.includes(languageCode)) { androidLanguages = [language.replace("-", "-r")]; // zh-CN becomes zh-rCN