I need to implement dynamic localization in my SwiftUI app. As a substitute of utilizing the built-in Localizable.strings information, I’ve saved all my localized strings in an Excel sheet (uploaded to Google Sheets).
There are lots of extra strings however I simply giving eg
https://docs.google.com/spreadsheets/d/1bpl7AGvrRotwsyMjFRm-h10pB5WZ31PJ5Y0naCr4atk/edit?usp=sharing
How can I fetch localization knowledge from an Excel sheet as a substitute of utilizing the built-in Localizable.strings in iOS?
Please information me and supply any documentation or code snippets for this.
I’ve used the next code for localization with Localizable.strings: However I would like this to occur from Excel sheet knowledge.. how?
Textual content("schoolCode_title".localized())
Textual content("schoolCode_findyourSchool".localized())
extension String {
func localized() -> String {
LanguageManager.shared.localizedString(forKey: self)
}
}