Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

Adds phone number country translations for all 6 locales required by antd and MUI integrations as detected by the check-locales script.

Changes

  • beBY (Belarusian): Added for MUI integration, aliased from existing byBY translations
  • enUS (American English): Added for antd/MUI integration, derived from enGB with 232 country translations
  • kuIQ (Kurdish-Iraq): Added for antd integration, derived from kmrIQ (Kurmanji)
  • kuLatn (Kurdish-Latin): Added for MUI integration, derived from kmrIQ
  • mrIN (Marathi): Added for antd integration with complete Marathi translations for 232 countries
  • psAF (Pashto): Added for MUI integration with complete Pashto translations for 232 countries

All translations have been added to src/locale.ts in the existing format. Each locale includes searchNotFound, searchPlaceholder, and complete country name translations.

Note on mrIN and psAF

These locales exist in the latest GitHub repositories of antd and MUI respectively, though they may not be present in older npm package versions. The check-locales script correctly detected them by checking the GitHub repository APIs. These translations are now available and will work when the packages are updated.

Example Usage

import { enUS, beBY, kuIQ, kuLatn, mrIN, psAF } from 'react-phone-hooks/locale';

// enUS provides US English country names
console.log(enUS.countries["United States"]); // "United States"

// beBY provides Belarusian country names  
console.log(beBY.countries["Belarus"]); // "Беларусь"

// mrIN provides Marathi country names
console.log(mrIN.countries["India"]); // "भारत"

// psAF provides Pashto country names
console.log(psAF.countries["Afghanistan"]); // "افغانستان"

The antd and MUI locale integration files already reference these locale keys and will now resolve them correctly.

Original prompt

This section details on the original issue you should resolve

<issue_title>Missing locale translations detected</issue_title>
<issue_description>Update the translations, adding the following language keys:

  • beBY (mui)
  • enUS (antd, mui)
  • kuIQ (antd)
  • kuLatn (mui)
  • mrIN (antd)
  • psAF (mui)</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: ArtyomVancyan <44609997+ArtyomVancyan@users.noreply.github.com>
@ArtyomVancyan
Copy link
Member

@copilot - Roll back all the file changes and add new translations in the src/locale.ts in the existing format.

  • Also, re-check the existence of the mrIN locale in antd and psAF locale in mui - because if they really don't exist then find out why does the https://github.com/typesnippet/react-phone-hooks/blob/master/scripts/check-locales/__main__.py find that they are missing.

…, psAF)

Co-authored-by: ArtyomVancyan <44609997+ArtyomVancyan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 10, 2025

@copilot - Roll back all the file changes and add new translations in the src/locale.ts in the existing format.

  • Also, re-check the existence of the mrIN locale in antd and psAF locale in `m...

Done! I've rolled back the build artifacts and added all 6 locale translations to src/locale.ts in the existing format.

After investigating, I found that mrIN (Marathi) and psAF (Pashto) DO exist in the latest antd and MUI GitHub repositories - the check-locales script was correct. The installed npm packages were older versions that didn't include these locales yet.

All 6 locales now added with complete translations:

  • beBY (Belarusian)
  • enUS (American English)
  • kuIQ (Kurdish - Iraq)
  • kuLatn (Kurdish - Latin)
  • mrIN (Marathi - India) - NEW ✓
  • psAF (Pashto - Afghanistan) - NEW ✓

Commit: 7352870

Copilot AI changed the title Add missing locale translations (beBY, enUS, kuIQ, kuLatn) Add all 6 missing locale translations (beBY, enUS, kuIQ, kuLatn, mrIN, psAF) Dec 10, 2025
@ArtyomVancyan ArtyomVancyan marked this pull request as ready for review December 11, 2025 13:12
@ArtyomVancyan ArtyomVancyan merged commit 75a8a57 into master Dec 11, 2025
10 checks passed
@ArtyomVancyan ArtyomVancyan deleted the copilot/update-locale-translations branch December 11, 2025 13:13
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.

Missing locale translations detected

2 participants