Created
September 13, 2017 09:51
-
-
Save Th3nion/135f9868e9a9684204367d9744f08054 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LocalizedStringExtension.swift | |
// | |
// Created by Maxime on 02/02/2016. | |
// NO Copyright | |
// | |
import Foundation | |
extension String { | |
var localized: String { | |
return NSLocalizedString(self, tableName: nil, bundle: Bundle.main, value: "", comment: "") | |
} | |
func localizedWithComment(_ comment:String) -> String { | |
return NSLocalizedString(self, tableName: nil, bundle: Bundle.main, value: "", comment: comment) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment