Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Link "Settings → Telegram Group" should open channel according to user's locale #879

Merged
merged 2 commits into from
Aug 4, 2018

Conversation

ArtemGoryunov
Copy link
Collaborator

@ArtemGoryunov ArtemGoryunov commented Aug 3, 2018

Referencing to #875

@ArtemGoryunov ArtemGoryunov self-assigned this Aug 3, 2018
@@ -36,7 +36,9 @@ enum URLServiceProvider {
case .twitter:
return URL(string: "twitter://user?screen_name=\(Constants.twitterUsername)")!
case .telegram:
return URL(string: "tg://resolve?domain=\(Constants.telegramUsername)")
let languageCode = NSLocale.preferredLanguageCode ?? ""
Copy link
Contributor

Choose a reason for hiding this comment

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

can you move this code into a function? it's been reused below

Copy link
Contributor

@vikmeup vikmeup left a comment

Choose a reason for hiding this comment

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

Love it

@ArtemGoryunov ArtemGoryunov merged commit 12afb56 into master Aug 4, 2018
@ArtemGoryunov ArtemGoryunov deleted the #875-localized-links-to-the-telegram-group branch August 4, 2018 07:26
ghost pushed a commit that referenced this pull request Aug 6, 2018
…ansactions

* master:
  Move reload into separate function
  Crash: Signing on watch address via browser #885
  fix crash when signing on watch address via browser #885 (#887)
  Update localized string and use R
  Move into separate function
  Update Analitics.swift (#882)
  Link "Settings → Telegram Group" should open channel according to user's locale (#879)
  Improve currentWalletDescriptionString
  Move Help center higher in order
  Version Bump
ghost pushed a commit that referenced this pull request Aug 6, 2018
* master:
  Move reload into separate function
  Crash: Signing on watch address via browser #885
  fix crash when signing on watch address via browser #885 (#887)
  Update localized string and use R
  Move into separate function
  Update Analitics.swift (#882)
  Link "Settings → Telegram Group" should open channel according to user's locale (#879)
  Improve currentWalletDescriptionString
  Move Help center higher in order
  Version Bump
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants