-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localization Arabic #401
Comments
Where is |
i created a protocol it is the same as : but the text is not translated
|
@sam961 oh, I missed something in your original post. You had |
@sam961 I was not able to reproduce the issue. I set up my localized strings file like this:
In my app code, here's how I set up the styling. I used an existing app, so the code has more than you should need to get it working, but here's the gist: label.attributedText = String(format: NSLocalizedString("List of <nameStyle>%@</nameStyle>'s devices", comment: "foo"), "Zev").styled(with: StringStyle([
.adapt(.control),
.font(UIFont.systemFont(ofSize: 30, weight: .medium)),
.color(.tutorialText),
.alignment(.center),
.xmlRules([
.style("nameStyle", StringStyle(.color(.red))),
]),
])) Result: |
I cannot make locaization from english to arabic
example
let text = "List of <nameStyle>%@</nameStyle>'s devices".localizedWithParameters(name)
In the localized string i have the following :
"List of <nameStyle>%@</nameStyle>'s devices"="الأجهزة <nameStyle>%@</nameStyle>'الخاصة";
Please help
The text was updated successfully, but these errors were encountered: