mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Localizations
This commit is contained in:
7
Extensions/String+Localizable.swift
Normal file
7
Extensions/String+Localizable.swift
Normal file
@@ -0,0 +1,7 @@
|
||||
import Foundation
|
||||
|
||||
extension String {
|
||||
func localized(_ comment: String = "") -> Self {
|
||||
NSLocalizedString(self, tableName: "Localizable", bundle: .main, comment: comment)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user