SiriKit: Custom Intents - localization problem - ios

I have the problem, that Siri always responses with the english version of my intents. I have create a demo project to seperate out the relevant code:
I have 3 targets in my project:
The .intentsdefinition file is located in the framework (Base) and the classes are generated also there, as it was suggested in the WWDC talk (2018 - 211)
This file is also translated into the german language:
But the problem is, that if I create a shortcut/intent via the app (INUIAddVoiceShortcutViewController) the action name is already in english (should be Hallo not Hello), but as you can see, the whole ViewController is localized in german:
The strange thing is, if I select the action to see more info, the string inside this view controller is in german.
If I add this shortcut to Siri, the info texts are all in german, if I use the Shortcuts.app. If I ask Siri about the state, the response is in german, but the custom response of my shortcut is in english.

I reported the problem to Apple (feedback) and got an answer today. The bug should be fixed with iOS 14 beta 5.
I can confirm, that this is fixed with the latest iOS beta 7.

Related

Unabled to create single view ios app in xcode

I am new to ios/xcode and I was trying to follow through the new SwiftUI tutorial. The first one has you create a ios single view app . However when I go to xcode under the ios filter that, among others is not an option for me: I have verified that my xcode is up to date via app store. Is this due to me not having a paid developer account? Are those templates in a beta channel of xcode?
Answering, as per the OP...
The tutorial in question was done using Xcode 11
In Xcode 12, there is no longer a Single View App option — it has been replaced with simply “App”
Select app and then in the next screen select "Storyboard" in the "Interface" drop down menu. That will create what you need (mainly the Main.storyboard file) for the single view app. (see the linked screenshot here below)
enter image description here
enter image description here
I don't think the "App" template that #donmag mentions is exactly the same (I don't believe it gives the same folder structure). I have a template on github for the Single View App that should match the folder structure you need, if you're still looking for that: https://github.com/jcross0204/ios-single-view-app-template/tree/master

Xcode Display Name and Danish Characters causes Xcode to fail

I'm developing an app with Swift + Spritekit with the project name as simple as "learningApp".
A good step and several hours into the development my team decided to name the app (with danish letters) "Lær Toner" (which in English means to learn tones).
However, when doing so - the entire project fails in Xcode. The .swift and .sks scene-files are not able to communicate and the console outputs this message:
2019-10-31 00:09:47.549357+0100 Lær Toner[18206:292858] Unable to load custom class 'LaunchScreen' from module '(null)'
Just to be clear, here's images:
So if I change the name to "Learn Tones" there are no issues at all and the app works as intended. As soon as I change it back to "Lær Toner" and run the app the console outputs the message above.
I tried to change it via "Build Settings" also - I also tried to reboot Xcode, clean the build folder, but nothing have helped so far.
I can see in the Danish App store that multiple applications have Danish letters like Æ, Ø and Å in the name, so that leads to think it's (hopefully) a minor thing I've missed.
I've searched the world wide web till the end, but I have not found anything close to a solution to this issue.
If anyone has any input, or knows how to deal with this, I'd be a happy developer.
Thanks in advance.
I found the same issue when i have changed the display name from the 'General' tab of my target settings.
The solution is;
Go back to the previous name by discarding the changes you have made, and make sure the app is running correctly.
Uninstall the app from your device or simulator.
Clean the project.
The important thing is to add a new key on your info.plist
<key>CFBundleDisplayName</key>
<string>Lær Toner</string>
And it will be ok.

Googlecast labels not localized to device's language

According to Googlecast's release notes and this issue tracker, localization should already be supported/implemented by default when using the new 4.4.2 SDK. Checking the actual GoogleCastUIResources.bundle also confirms the new translations. However for my iOS applications, changing the device language to any other languages still gives me the strings in English.
Am I missing any intermediate steps to get localization for my iOS apps?
Add the language in your project file, that worked for me.

iOS localization is broken with the upgrade iOs 9 + Xcode 7

I localized my app in Italian and English, using the Localizable.strings file and the NSLocalizedString macro. I also enabled base localization. Everything works fine in the simulator and on devices with iOS 8, but on iOS 9 the app is always in english, even on devices with the italian language selected as default in the iPhone settings.
Does iOS 9 changes something with localization?
Here's a screenshot of the Xcode localization settings
1
And of the device used for testing
Thanks in advance
Solved, the "problem" was the key "Localization native development region" in the info.plist file. It was setted to Italy, so when the app was running in a device with the Italian language as default it was showing the Base localization version of the strings (the English version).
Changing the value to United States solved the issue.
I have another solution, just remove the key 'Localizations' in info.plist.
It works for my case.
I've found a workaround.
The root cause of this problem is Apple changed the "Language Identifiers" in iOS 9, please refer this.
Since NSLocalizedString() (and variants thereof) access the "AppleLanguages" key in NSUserDefaults to determine what the user's settings for preferred languages are. I forced NSLocalizedString to use a specific language with is noted as their old Language Identifiers in older iOS versions once I found their Language ID is in new format. In another word, I made a mapping of "AppleLanguages" key value.
To do this, please refer to: How to force NSLocalizedString to use a specific language
I think Apple did a very bad job in compatibility!!

Problems in changing language of my iPhone app

Hi I've created my iPhone app for IOS 5.0 with Xcode 4.2. By default it is localized in English.
I would like to make the app appear on the app store with language "French".
From my understanding, I've to remove English language and add the French one, but this is causing some problems to me.
At first, each time I open my app in Xcode, english language is added by default, even if I have removed it previously.
Moreover, if I localize my Storyboard files in French, the file is moved to my fr folder in project, but this causes in "Copy Bundle Resources" a problem with the file that becomes red.
To make it work again, I've to remove the localization from the Storyboard files.
Can you please help me?

Resources