Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename language name in the LanguageSelector #116

Closed
JohnUW42 opened this issue Jan 29, 2023 · 2 comments
Closed

Rename language name in the LanguageSelector #116

JohnUW42 opened this issue Jan 29, 2023 · 2 comments
Labels
enhancement New feature or request released on @beta

Comments

@JohnUW42
Copy link

Hi!

Would you please add a possibility to rename a language name in the LanguageSelector, or something to that effect.

For example, on the attached screenshot, the default name for the LV language is excessively long — it says "latvian language", instead of just "latvian", and in all small caps. I want to change that.

Thank you!

LanguageSelector

@yassinedoghri yassinedoghri added the enhancement New feature or request label Feb 11, 2023
yassinedoghri pushed a commit that referenced this issue Feb 26, 2023
# [1.0.0-beta.18](v1.0.0-beta.17...v1.0.0-beta.18) (2023-02-26)

### Bug Fixes

* handle localizePath trailing slash depending on astro's trailingSlash config ([880666c](880666c)), closes [#119](#119)

### Features

* **language-selector:** add languageMapping prop to rename languages of choice ([20d94e4](20d94e4)), closes [#116](#116)
@github-actions
Copy link

🎉 This issue has been resolved in version 1.0.0-beta.18 🎉

The release is available on:

Your semantic-release bot 📦🚀

@yassinedoghri
Copy link
Owner

@JohnUW42 I've added a prop to LanguageSelector called languageMapping in beta.18

You may change "latviešu valoda" to what I'm guessing is "latviešu" like so:

<LanguageSelector
  showFlag={true}
  languageMapping={{ lv: "latviešu" }}
  class="my-select-class"
/>

AliLee0923 pushed a commit to AliLee0923/astro-i18N that referenced this issue Dec 2, 2023
# [1.0.0-beta.18](yassinedoghri/astro-i18next@v1.0.0-beta.17...v1.0.0-beta.18) (2023-02-26)

### Bug Fixes

* handle localizePath trailing slash depending on astro's trailingSlash config ([880666c](yassinedoghri/astro-i18next@880666c)), closes [#119](yassinedoghri/astro-i18next#119)

### Features

* **language-selector:** add languageMapping prop to rename languages of choice ([20d94e4](yassinedoghri/astro-i18next@20d94e4)), closes [#116](yassinedoghri/astro-i18next#116)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released on @beta
Projects
None yet
Development

No branches or pull requests

2 participants