Skip to content

Commit

Permalink
- Adds Hindi localization
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Aug 9, 2024
1 parent b3b5b88 commit bdceeb2
Show file tree
Hide file tree
Showing 6 changed files with 3,409 additions and 125 deletions.
6 changes: 4 additions & 2 deletions FSNotes/AboutViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class AboutViewController: NSViewController, NSTableViewDataSource, NSTableViewD
"Hebrew 🇮🇱",
"Chinese 🇨🇳",
"Portuguese 🇵🇹",
"Czech 🇨🇿"
"Czech 🇨🇿",
"Hindi 🇮🇳",
]

private var authors = [
Expand All @@ -43,7 +44,8 @@ class AboutViewController: NSViewController, NSTableViewDataSource, NSTableViewD
"Will Pazner (github.com/pazner)",
"Holton Jiang (github.com/holton-jiang)",
"Vanessa C. (github.com/VChristinne)",
"Max Akrman (github.com/isametry)"
"Max Akrman (github.com/isametry)",
"Aagman ([email protected])"
]

override func viewDidLoad() {
Expand Down
220 changes: 110 additions & 110 deletions FSNotes/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions FSNotes/Business/LanguageType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ enum LanguageType: Int {
case Japanese = 13
case PtBr = 14
case Czech = 15
case Hindi = 16

var description: String {
switch rawValue {
Expand All @@ -54,6 +55,7 @@ enum LanguageType: Int {
case 13: return "Japanese"
case 14: return "Portuguese (Brazilian)"
case 15: return "Czech"
case 16: return "Hindi"
default: return ""
}
}
Expand All @@ -76,6 +78,7 @@ enum LanguageType: Int {
case 13: return "ja"
case 14: return "pt-BR"
case 15: return "cs"
case 16: return "hi"
default: return "en"
}
}
Expand All @@ -98,6 +101,7 @@ enum LanguageType: Int {
case "Japanese": return LanguageType.Japanese
case "Portuguese (Brazilian)": return LanguageType.PtBr
case "Czech": return LanguageType.Czech
case "Hindi": return LanguageType.Hindi
default: return LanguageType.English
}
}
Expand All @@ -120,6 +124,7 @@ enum LanguageType: Int {
case "ja": return 13
case "pr-BR": return 14
case "cs": return 15
case "hi": return 16
default: return 0x00
}
}
Expand Down
Loading

0 comments on commit bdceeb2

Please sign in to comment.