Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/localizations/src/utils/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { elGR } from '../el-GR';
import { enGB } from '../en-GB';
import { enUS } from '../en-US';
import { esES } from '../es-ES';
import { esCR } from '../es-CR';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Unused esCR import breaks the build – wire it into run() and keep alphabetic order

esCR is imported but never referenced, tripping both ESLint (@typescript-eslint/no-unused-vars) and unused-imports/no-unused-imports.
Add the corresponding run invocation (and optionally sort the import list) to make the script pick up the new locale and keep CI green.

-import { esES } from '../es-ES';
-import { esCR } from '../es-CR';
+import { esCR } from '../es-CR';
+import { esES } from '../es-ES';
 run(enGB, 'en-GB');
+run(esCR, 'es-CR');          // ← new locale
 run(esES, 'es-ES');
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import { esCR } from '../es-CR';
import { enGB } from '../en-GB';
import { esCR } from '../es-CR';
import { esES } from '../es-ES';
run(enGB, 'en-GB');
run(esCR, 'es-CR');
run(esES, 'es-ES');
🧰 Tools
🪛 ESLint

[error] 23-23: 'esCR' is defined but never used. Allowed unused vars must match /^_/u.

(@typescript-eslint/no-unused-vars)


[error] 23-23: 'esCR' is defined but never used.

(unused-imports/no-unused-imports)

🤖 Prompt for AI Agents
In packages/localizations/src/utils/generate.ts at line 23, the imported esCR is
unused causing lint errors and build failure. To fix this, add a call to
run(esCR) within the run() function or appropriate place so the locale is
processed. Also, reorder the import statements alphabetically to maintain
consistency.

import { esMX } from '../es-MX';
import { fiFI } from '../fi-FI';
import { frFR } from '../fr-FR';
Expand Down