aboutsummaryrefslogblamecommitdiffstats
path: root/WireGuard/WireGuard/LocalizationHelper.swift
blob: ed21090c0cd0c7cbf87f6f76a304604fb16583b4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                               
                                                             









                                                                                       
// SPDX-License-Identifier: MIT
// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.

import Foundation

func tr(_ key: String) -> String {
    return NSLocalizedString(key, comment: "")
}

func tr(format: String, _ arguments: CVarArg...) -> String {
    return String(format: NSLocalizedString(format, comment: ""), arguments: arguments)
}