Skip to content

Commit

Permalink
Add Arabic language support
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Mar 5, 2025
1 parent 9378b90 commit e80c438
Show file tree
Hide file tree
Showing 4 changed files with 436 additions and 2 deletions.
4 changes: 3 additions & 1 deletion IsraelHiking.Common/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,14 @@ public static class Languages
public const string HEBREW = "he";
public const string ENGLISH = "en";
public const string RUSSIAN = "ru";
public const string ARABIC = "ar";
public const string DEFAULT = "default";
public static readonly string[] Array =
[
HEBREW,
ENGLISH,
RUSSIAN
RUSSIAN,
ARABIC
];
public static readonly string[] ArrayWithDefault = new [] { DEFAULT }.Concat(Array).ToArray();
}
Expand Down
2 changes: 1 addition & 1 deletion IsraelHiking.Web/src/application/models/language.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type LanguageCode = "en-US" | "he" | "ru";
export type LanguageCode = "en-US" | "he" | "ru" | "ar";

export type Language = {
code: LanguageCode;
Expand Down
5 changes: 5 additions & 0 deletions IsraelHiking.Web/src/application/reducers/initial-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export const AVAILABLE_LANGUAGES: Language[] = [{
code: "ru",
rtl: false,
label: "Русский"
},
{
code: "ar",
rtl: true,
label: "العربية"
}
];

Expand Down
Loading

0 comments on commit e80c438

Please sign in to comment.