aboutsummaryrefslogtreecommitdiffstats
path: root/Sources/WireGuardApp/LocalizationHelper.swift
blob: fcf13a9a27c705ac93e9477ff00f95e3f53799ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: MIT
// Copyright © 2018-2023 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)
}