Post

Replies

Boosts

Views

Activity

Reply to iOS: Date formatter with "ar_AE" language code not converting date to Arabic
Some regions prefer to use Western digits rather than Arabic-Indic digits, so you'll see this discrepancy for these locales: ar_AE ar_DZ ar_EH ar_LY ar_MA ar_TN Is this what you mean when you say it doesn't work? Alternatively, if you add the Arabic-Indic numbering system to your locale identifier, you can override the default, but it may be confusing to users for those locales: ar_AE@numbers=arab
Sep ’22
Reply to Polish Months appear to be translated incorrectly
Could you include the code you're using? I'm getting the expected values with my source. let templateFormatter = DateFormatter() templateFormatter.locale = Locale(identifier: "pl") templateFormatter.formattingContext = .standalone templateFormatter.setLocalizedDateFormatFromTemplate("MMMM") let gregorianCalendar = Calendar(identifier: .gregorian) for month in 1...12 {     let date = gregorianCalendar.date(from: DateComponents(era: 1, year: 2022, month: month, day: 1, hour: 0, minute: 0, second: 0))!     let formattedValue = templateFormatter.string(from: date)     print(formattedValue) }
Mar ’22