Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/shared/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { type Language, isLanguage } from "@roo-code/types"
*/

export const LANGUAGES: Record<Language, string> = {
ar: "العربية",
Copy link
Contributor

Choose a reason for hiding this comment

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

This change will cause TypeScript compilation errors. The "ar" value needs to be added to the languages array in packages/types/src/vscode.ts (lines 64-83) for the Language type to recognize it as valid.

Could you also add "ar" to that array to ensure type safety?

Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that the Arabic locale directories and translation files are missing from all three locations:

  • src/i18n/locales/ar/
  • webview-ui/src/i18n/locales/ar/
  • locales/ar/

Without these directories and their translation JSON files, the application will fail when users try to switch to Arabic. Could you create these directories and add at least the basic translation files that other languages have?

ca: "Català",
de: "Deutsch",
en: "English",
Expand Down
Loading