Skip to content

feat(i18n): add Azerbaijani (az) locale#1409

Open
Abilovv599 wants to merge 3 commits intoopen-circle:mainfrom
Abilovv599:feat-i18n-az
Open

feat(i18n): add Azerbaijani (az) locale#1409
Abilovv599 wants to merge 3 commits intoopen-circle:mainfrom
Abilovv599:feat-i18n-az

Conversation

@Abilovv599
Copy link

@Abilovv599 Abilovv599 commented Feb 23, 2026

Summary by CodeRabbit

  • New Features
    • Added full Azerbaijani (az) locale to the i18n package.
    • All validation messages, schemas and validator utilities are now localized in Azerbaijani.
    • Azerbaijani is exposed through the package exports, matching parity with existing languages.
    • Locale integrated into build and packaging so az is available alongside other supported locales.

@vercel
Copy link

vercel bot commented Feb 23, 2026

Someone is attempting to deploy a commit to the Open Circle Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Feb 23, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 23, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c2dc532 and c49b64c.

📒 Files selected for processing (2)
  • packages/i18n/scripts/build-jsr.ts
  • packages/i18n/scripts/build-npm.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/i18n/scripts/build-npm.ts
  • packages/i18n/scripts/build-jsr.ts

📝 Walkthrough

Walkthrough

Adds Azerbaijani (az) locale to the i18n package: new az source module and type, build script inclusion, package export mappings, and an entry in .gitignore.

Changes

Cohort / File(s) Summary
Ignore list
packages/i18n/.gitignore
Added az to ignored entries.
Build scripts
packages/i18n/scripts/build-jsr.ts, packages/i18n/scripts/build-npm.ts
Imported az and added it to the languages array so az is processed during JSR and npm build generation.
Package manifests
packages/i18n/jsr.json, packages/i18n/package.json
Added ./az and a full set of az sub-exports (index, schema, and ~70 validator submodules) to exports; added az to files list; updated exclude/include entries; minor EOF formatting change in jsr.json.
Source
packages/i18n/src/az.ts, packages/i18n/src/types.ts
New az language module exporting localized validation messages; added 'az' to the exported Language type union.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

I nibble keys and hop with glee,
A tongue named "az" joins the tree,
Messages stitched in a new rhyme,
Validators hum in Azerbaijani time,
🐰✨ Hop—another locale, one more chime!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(i18n): add Azerbaijani (az) locale' accurately summarizes the main change—adding support for the Azerbaijani language locale to the i18n package.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dosubot dosubot bot added the enhancement New feature or request label Feb 23, 2026
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
packages/i18n/scripts/build-npm.ts (1)

29-29: Import style is inconsistent with the rest of the file.

All other imports use single quotes and omit the .ts extension (e.g., import ar from '../src/ar';). Line 29 uses double quotes and includes .ts.

🔧 Proposed fix
-import az from "../src/az.ts";
+import az from '../src/az';
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/i18n/scripts/build-npm.ts` at line 29, The import statement for az
is inconsistent: change the line importing az (currently "import az from
\"../src/az.ts\";") to use single quotes and omit the .ts extension so it
matches other imports (e.g., follow the pattern used by imports like import ar
from '../src/ar'). Ensure the symbol name az and the relative path remain the
same aside from quote style and removing the file extension.
packages/i18n/scripts/build-jsr.ts (1)

30-30: Same import style inconsistency as build-npm.ts.

🔧 Proposed fix
-import az from "../src/az.ts";
+import az from '../src/az';
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/i18n/scripts/build-jsr.ts` at line 30, The import in build-jsr.ts
uses a different style than build-npm.ts; update the import statement for the az
module to match the style used in build-npm.ts (e.g., change import az from
"../src/az.ts"; to the extension-less form used in build-npm.ts) so the az
symbol is imported consistently across both scripts.
ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b728cb4 and c2dc532.

📒 Files selected for processing (7)
  • packages/i18n/.gitignore
  • packages/i18n/jsr.json
  • packages/i18n/package.json
  • packages/i18n/scripts/build-jsr.ts
  • packages/i18n/scripts/build-npm.ts
  • packages/i18n/src/az.ts
  • packages/i18n/src/types.ts
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@packages/i18n/scripts/build-jsr.ts`:
- Line 30: The import in build-jsr.ts uses a different style than build-npm.ts;
update the import statement for the az module to match the style used in
build-npm.ts (e.g., change import az from "../src/az.ts"; to the extension-less
form used in build-npm.ts) so the az symbol is imported consistently across both
scripts.

In `@packages/i18n/scripts/build-npm.ts`:
- Line 29: The import statement for az is inconsistent: change the line
importing az (currently "import az from \"../src/az.ts\";") to use single quotes
and omit the .ts extension so it matches other imports (e.g., follow the pattern
used by imports like import ar from '../src/ar'). Ensure the symbol name az and
the relative path remain the same aside from quote style and removing the file
extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant