This repository has been archived by the owner on Jun 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#875 Telegram group links were localized.
- Loading branch information
1 parent
411554e
commit 8b773e9
Showing
4 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright DApps Platform Inc. All rights reserved. | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
extension NSLocale { | ||
static var preferredLanguageCode: String? { | ||
let langageRegion = NSLocale.preferredLanguages.first ?? "" | ||
let languageComponents = NSLocale.components(fromLocaleIdentifier: langageRegion) | ||
return languageComponents[NSLocale.Key.languageCode.rawValue] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,11 @@ public struct Constants { | |
// social | ||
public static let website = "https://trustwalletapp.com" | ||
public static let twitterUsername = "trustwalletapp" | ||
public static let telegramUsername = "trustwallet" | ||
public static let defaultTelegramUsername = "trustwallet" | ||
public static let facebookUsername = "trustwalletapp" | ||
|
||
public static var localizedTelegramUsernames = ["ru": "trustwallet_ru", "vi": "trustwallet_vn", "es": "trustwallet_es", "zh": "trustwallet_cn", "ja": "trustwallet_jp", "de": "trustwallet_de", "fr": "trustwallet_fr"] | ||
|
||
// support | ||
public static let supportEmail = "[email protected]" | ||
public static let donationAddress = "0x9f8284ce2cf0c8ce10685f537b1fff418104a317" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters