첨부파일에 로케일 정보가 들어있고..
쓸 때는 이렇게.. ㅎㅎㅎ
import UIKit
print("localeIdentifier, Description")
let identifiers: NSArray = NSLocale.availableLocaleIdentifiers as NSArray
let locale = NSLocale(localeIdentifier: "en_US")
identifiers.forEach {
let name = locale.displayName(forKey: NSLocale.Key.identifier, value: $0)!
print("\($0),\"\(name)\"")
}
let identifiers : NSArray = NSLocale.availableLocaleIdentifiers()
let locale = NSLocale(localeIdentifier: "en_US")
var list = NSMutableString()
for identifier in identifiers {
let name = locale.displayNameForKey(NSLocaleIdentifier, value: identifier)!
list.appendString("\(identifier)\t\(name)\n")
}
print(list)