Repository navigation
Is PackageCatalog.AddResourcePackageAsync/Package.Current.Dependencies functioning correctly - how to install a language package when the language isn't a system user language? #6933
|
I'm adding translations for my app and I'd like the user to be able to select a different language in the app, even if it is not one of the languages the user has listed in the Windows Settings preferred languages. I am using automatic package splitting when generating the msixbundle, so stuff inside Assets/Languages/fr/ ends up in the package with resource ID |
Replies: 1 comment
|
To answer my own question, it seems that you have to specify the force target app shutdown option when adding the resource package, otherwise I guess it is only staged, even after you've restarted the app. One minor point is it shuts down the app but doesn't restart it as stated in the docs, although this isn't a big deal. Also, it's best to pass the apply updates flag as well when adding the resource package, else it won't work if there's an update pending and it didn't work from the Store for me in a package flight even when there wasn't an update pending until I added this flag. |
To answer my own question, it seems that you have to specify the force target app shutdown option when adding the resource package, otherwise I guess it is only staged, even after you've restarted the app. One minor point is it shuts down the app but doesn't restart it as stated in the docs, although this isn't a big deal.
Also, it's best to pass the apply updates flag as well when adding the resource package, else it won't work if there's an update pending and it didn't work from the Store for me in a package flight even when there wasn't an update pending until I added this flag.