mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
482 B
Swift
19 lines
482 B
Swift
// RUN: %target-run-simple-swift | %FileCheck %s
|
||
// REQUIRES: executable_test
|
||
|
||
// REQUIRES: objc_interop
|
||
|
||
import Foundation
|
||
|
||
let key = "inquiens"
|
||
let value = "λαμπερός"
|
||
|
||
let s1 = NSLocalizedString(key, comment: "Hello")
|
||
// CHECK: key = inquiens s1 = inquiens
|
||
print("key = \(key) s1 = \(s1)")
|
||
|
||
let s2 = NSLocalizedString(key, tableName:nil, bundle: Bundle.main, value: value, comment: "Hello")
|
||
// CHECK: key = inquiens s2 = λαμπερός
|
||
print("key = \(key) s2 = \(s2)")
|
||
|