Skip to content

Conversation

@skaldebane
Copy link
Contributor

@skaldebane skaldebane commented Jan 29, 2026

Adds Arabic locale. Stacked on top of #263, and can only be merged after its base PR is merged.

  • Arabic strings
  • Adds pluralization for found_packages in English to match, other languages may follow
  • Supplies the plural parameter to various $t calls for pluralization to work
    - Adds search.header, used in the search results header, on all languages, copied from nav.search. Fixed in main.

There's still no rtl or lang wiring to the html element.
That was part of #245, and may be redone as a separate PR.
See #275.

Any UI adjustments for rtl will follow in a separate PR.

@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Jan 29, 2026 11:46pm
npmx.dev Ready Ready Preview, Comment Jan 29, 2026 11:46pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
npmx-lunaria Ignored Ignored Jan 29, 2026 11:46pm

Request Review

@github-actions
Copy link

github-actions bot commented Jan 29, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
lunaria/files/en-US.json Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@skaldebane
Copy link
Contributor Author

rebased onto main, ready to merge!

@skaldebane
Copy link
Contributor Author

updated translation with latest strings, ready to merge 👍🏻

@danielroe danielroe enabled auto-merge January 29, 2026 22:43
@danielroe
Copy link
Collaborator

🚀

auto-merge was automatically disabled January 29, 2026 22:43

Head branch was pushed to by a user without write access

@skaldebane
Copy link
Contributor Author

sorry, forgot to build:lunaria, should be good now!

name: 'English',
},
{
code: 'ar-EG',
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be ar not ar-EG, buildLocales will add ar-EG using both files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mmm, that's what it was from the elk code, but it causes a type error 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

you need to run pnpm nuxt prepare or start dev server, locales are typed at i18n

Copy link
Contributor Author

Choose a reason for hiding this comment

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

still seems to give a type error. happens on CI too

Copy link
Contributor

Choose a reason for hiding this comment

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

checking on my local, I changed the type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh shoot, commented in the same moment
yes vscode. before the error was on the string itself, now (idk what changed) it seems to be @intlify/core-base

and in a previous commit it failed in CI here too (on the type of the strring itself)

Copy link
Contributor

Choose a reason for hiding this comment

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

arrggg missing @intlify/core-base, can you run pnpm add @intlify/core-base and commit and push package.json and pnpm-lock.yaml

Copy link
Contributor Author

@skaldebane skaldebane Jan 29, 2026

Choose a reason for hiding this comment

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

when'd that disappear! i just added it back, here's the error:

Type '"ar"' is not assignable to type '"ar-EG" | "de-DE" | "en-US" | "es-419" | "es-ES" | "fr-FR" | "it-IT" | "ja-JP" | "zh-CN"'.ts(2322)
module.d.mts(447, 5): The expected type comes from property 'code' which is declared here on type 'LocaleObjectData'

(property) LocaleObject<"ar-EG" | "de-DE" | "en-US" | "es-419" | "es-ES" | "fr-FR" | "it-IT" | "ja-JP" | "zh-CN">.code: "ar-" | "de-DE" | "en-US" | "es-419" | "es-ES" | "fr-FR" | "it-IT" | "ja-JP" | "zh-CN"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apparently it was removed in 4ca6ce8, knip is now failing CI

Copy link
Collaborator

Choose a reason for hiding this comment

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

fixed ✅

@VentyCZ
Copy link

VentyCZ commented Jan 29, 2026

Glad for the code changes too, will use these changes in #360 😉

@danielroe danielroe enabled auto-merge January 29, 2026 23:46
@danielroe danielroe added this pull request to the merge queue Jan 29, 2026
Merged via the queue into npmx-dev:main with commit 0805720 Jan 29, 2026
13 checks passed
@skaldebane skaldebane deleted the i18n/ar branch January 29, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants