chore: add missing events object to language service
This commit is contained in:
parent
239eb4fa8a
commit
8798f785f6
|
@ -166,7 +166,7 @@ proc newAppController*(statusFoundation: StatusFoundation): AppController =
|
||||||
)
|
)
|
||||||
result.aboutService = about_service.newService(statusFoundation.events, statusFoundation.threadpool)
|
result.aboutService = about_service.newService(statusFoundation.events, statusFoundation.threadpool)
|
||||||
result.dappPermissionsService = dapp_permissions_service.newService()
|
result.dappPermissionsService = dapp_permissions_service.newService()
|
||||||
result.languageService = language_service.newService()
|
result.languageService = language_service.newService(statusFoundation.events)
|
||||||
# result.mnemonicService = mnemonic_service.newService()
|
# result.mnemonicService = mnemonic_service.newService()
|
||||||
result.privacyService = privacy_service.newService(statusFoundation.events, result.settingsService,
|
result.privacyService = privacy_service.newService(statusFoundation.events, result.settingsService,
|
||||||
result.accountsService)
|
result.accountsService)
|
||||||
|
|
|
@ -15,10 +15,10 @@ proc locale*(self: Item): string {.inline.} =
|
||||||
self.locale
|
self.locale
|
||||||
|
|
||||||
proc name*(self: Item): string {.inline.} =
|
proc name*(self: Item): string {.inline.} =
|
||||||
self.locale
|
self.name
|
||||||
|
|
||||||
proc native*(self: Item): string {.inline.} =
|
proc native*(self: Item): string {.inline.} =
|
||||||
self.locale
|
self.native
|
||||||
|
|
||||||
proc flag*(self: Item): string {.inline.} =
|
proc flag*(self: Item): string {.inline.} =
|
||||||
self.locale
|
self.flag
|
||||||
|
|
|
@ -19,7 +19,7 @@ let localeDescriptionTable* = {
|
||||||
"fa": Description(name: "Persian", native: "فارسی", flag: "🇮🇷"),
|
"fa": Description(name: "Persian", native: "فارسی", flag: "🇮🇷"),
|
||||||
"fr": Description(name: "French", native: "Français", flag: "🇫🇷"),
|
"fr": Description(name: "French", native: "Français", flag: "🇫🇷"),
|
||||||
"he": Description(name: "Hebrew", native: "עברית'", flag: "🇮🇱"),
|
"he": Description(name: "Hebrew", native: "עברית'", flag: "🇮🇱"),
|
||||||
"he": Description(name: "Hindi", native: "हिन्दी", flag: "🇮🇳"),
|
"hi": Description(name: "Hindi", native: "हिन्दी", flag: "🇮🇳"),
|
||||||
"hu": Description(name: "Hungarian", native: "Magyar", flag: "🇭🇺"),
|
"hu": Description(name: "Hungarian", native: "Magyar", flag: "🇭🇺"),
|
||||||
"id": Description(name: "Indonesian", native: "Bahasa Indonesia", flag: "🇮🇩"),
|
"id": Description(name: "Indonesian", native: "Bahasa Indonesia", flag: "🇮🇩"),
|
||||||
"it": Description(name: "Italian", native: "Italiano", flag: "🇮🇹"),
|
"it": Description(name: "Italian", native: "Italiano", flag: "🇮🇹"),
|
||||||
|
|
|
@ -23,8 +23,9 @@ type
|
||||||
proc delete*(self: Service) =
|
proc delete*(self: Service) =
|
||||||
discard
|
discard
|
||||||
|
|
||||||
proc newService*(): Service =
|
proc newService*(events: EventEmitter): Service =
|
||||||
result = Service()
|
result = Service()
|
||||||
|
result.events = events
|
||||||
result.shouldRetranslate = not defined(linux)
|
result.shouldRetranslate = not defined(linux)
|
||||||
|
|
||||||
proc obtainLocales(dir: string): seq[string] =
|
proc obtainLocales(dir: string): seq[string] =
|
||||||
|
|
Loading…
Reference in New Issue