-
Notifications
You must be signed in to change notification settings - Fork 61.1k
Add UZ (Uzbekistan) locale #6528
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
base: main
Are you sure you want to change the base?
Conversation
Someone is attempting to deploy a commit to the NextChat Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes update Russian translations for certain URL command prompts, add extensive new Russian localization strings for image generation features, and introduce a comprehensive Uzbek localization file covering all application UI elements and features. Changes
Poem
β¨ Finishing Touches
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. πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
π Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
β Files ignored due to path filters (2)
package-lock.json
is excluded by!**/package-lock.json
yarn.lock
is excluded by!**/yarn.lock
,!**/*.lock
π Files selected for processing (2)
app/locales/ru.ts
(1 hunks)app/locales/uz.ts
(1 hunks)
π Additional comments (3)
app/locales/ru.ts (3)
589-592
: Good translation improvements.The updates to use "ΠΈΠ· URL" instead of "ΠΈΠ· ΡΡΡΠ»ΠΊΠΈ" and "ΠΡΠΈΠΌΠ΅Π½ΠΈΡΡ?" instead of "Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ Π·Π°ΠΏΠΎΠ»Π½ΠΈΡΡ?" make the Russian translations more precise and user-friendly.
593-623
: Well-structured Stable Diffusion translations.The SdPanel section provides comprehensive and accurate Russian translations for the Stable Diffusion interface. The style translations are appropriate and consistent with Russian technical terminology.
624-647
: Comprehensive Stable Diffusion management translations.The Sd section provides well-translated Russian strings for Stable Diffusion image management features. The status messages and action labels are clear and consistent with the overall localization quality.
Placeholder: "Google AI API Key", | ||
}, | ||
|
||
Endpoint: { | ||
Title: "Endpoint Address", | ||
SubTitle: "Example: ", | ||
}, | ||
|
||
ApiVersion: { | ||
Title: "API Version (specific to gemini-pro)", | ||
SubTitle: "Select a specific API version", | ||
}, | ||
GoogleSafetySettings: { | ||
Title: "Google Safety Settings", | ||
SubTitle: "Select a safety filtering level", | ||
}, | ||
}, | ||
}, | ||
|
||
Model: "Model", | ||
CompressModel: { | ||
Title: "Summary Model", | ||
SubTitle: "Model used to compress history and generate title", | ||
}, | ||
Temperature: { | ||
Title: "Temperature", | ||
SubTitle: "A larger value makes the more random output", | ||
}, | ||
TopP: { | ||
Title: "Top P", | ||
SubTitle: "Do not alter this value together with temperature", | ||
}, | ||
MaxTokens: { | ||
Title: "Max Tokens", | ||
SubTitle: "Maximum length of input tokens and generated tokens", | ||
}, | ||
PresencePenalty: { | ||
Title: "Presence Penalty", | ||
SubTitle: | ||
"A larger value increases the likelihood to talk about new topics", | ||
}, | ||
FrequencyPenalty: { | ||
Title: "Frequency Penalty", | ||
SubTitle: | ||
"A larger value decreasing the likelihood to repeat the same line", | ||
}, | ||
TTS: { | ||
Enable: { | ||
Title: "Enable TTS", | ||
SubTitle: "Enable text-to-speech service", | ||
}, | ||
Autoplay: { | ||
Title: "Enable Autoplay", | ||
SubTitle: | ||
"Automatically generate speech and play, you need to enable the text-to-speech switch first", | ||
}, | ||
Model: "Model", | ||
Voice: { | ||
Title: "Voice", | ||
SubTitle: "The voice to use when generating the audio", | ||
}, | ||
Speed: { | ||
Title: "Speed", | ||
SubTitle: "The speed of the generated audio", | ||
}, | ||
Engine: "TTS Engine", | ||
}, | ||
Realtime: { | ||
Enable: { | ||
Title: "Realtime Chat", | ||
SubTitle: "Enable realtime chat feature", | ||
}, | ||
Provider: { | ||
Title: "Model Provider", | ||
SubTitle: "Switch between different providers", | ||
}, | ||
Model: { | ||
Title: "Model", | ||
SubTitle: "Select a model", | ||
}, | ||
ApiKey: { | ||
Title: "API Key", | ||
SubTitle: "API Key", | ||
Placeholder: "API Key", | ||
}, | ||
Azure: { | ||
Endpoint: { | ||
Title: "Endpoint", | ||
SubTitle: "Endpoint", | ||
}, | ||
Deployment: { | ||
Title: "Deployment Name", | ||
SubTitle: "Deployment Name", | ||
}, | ||
}, | ||
Temperature: { | ||
Title: "Randomness (temperature)", | ||
SubTitle: "Higher values result in more random responses", | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π οΈ Refactor suggestion
Complete the Uzbek translations for the Settings section.
The Settings section (lines 171-636) contains English text instead of Uzbek translations. This is inconsistent with the rest of the file and the purpose of creating an Uzbek locale.
Consider translating these sections to Uzbek to provide a complete localized experience, or document if keeping certain technical sections in English is intentional.
π€ Prompt for AI Agents
In app/locales/uz.ts from lines 171 to 636, the Settings section currently
contains English text instead of Uzbek translations, which breaks localization
consistency. Translate all the English strings in this section into Uzbek to
provide a complete localized experience. If any technical terms or specific
labels should remain in English intentionally, document those exceptions clearly
in comments.
}, | ||
}; | ||
|
||
export default en; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update export statement to match the corrected variable name.
The export should reference uz
instead of en
to match the corrected variable name.
-export default en;
+export default uz;
π 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.
export default en; | |
-export default en; | |
+export default uz; |
π€ Prompt for AI Agents
In app/locales/uz.ts at line 872, the export statement incorrectly exports `en`
instead of `uz`. Update the export statement to export the variable `uz` to
match the corrected variable name used in the file.
// if you are adding a new translation, please use PartialLocaleType instead of LocaleType | ||
|
||
const isApp = !!getClientConfig()?.isApp; | ||
const en: LocaleType = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the variable name for Uzbek locale.
The locale object is named en
but this is an Uzbek locale file. It should be named uz
to match the language code.
-const en: LocaleType = {
+const uz: LocaleType = {
π€ Prompt for AI Agents
In app/locales/uz.ts at line 8, rename the locale object variable from `en` to
`uz` to correctly reflect that this is the Uzbek locale file and maintain
consistency with the language code.
π» εζ΄η±»ε | Change Type
π εζ΄θ―΄ζ | Description of Change
π θ‘₯ε δΏ‘ζ― | Additional Information
Summary by CodeRabbit
New Features
Improvements