How to manage installers dedicated for each language? #13266
Replies: 4 comments 12 replies
-
As the one who reworked the YAMLCreate and created the "Add Locale" function i can say i did not think about this, the "Add Locale" function is basically only to write the information in another language.. Firefox 82.0.1 is little example of how to do en-US and es-MX and here is a installer manifest with multiple languages but no locale manifest. If someone knows Powershell they can easily modify the Reworked YamlCreate, however the WinGet team is working on Feel free to ask any questions around manifest creation :) |
Beta Was this translation helpful? Give feedback.
-
This is a particularly challenging area. We do support multiple installer nodes in a way you can specify the locale for the installer with BCP47 format. You would specify the "InstallerLocale" in the "Installer" node. Note: this does require the multi-file manifest structure. |
Beta Was this translation helpful? Give feedback.
-
I just did some messing around with the Firefox 79 manifest (the one with all of the possible languages) to add arm64 and x86 versions (as Mozilla puts out different installers for those), and it looks like there's a limit in the schema of 128 installers per manifest (with every language and architecture permutation, there's around 231(!) installers for Firefox).
@denelon is there any chance this limit can be increased in the current version of the schema? This is an odd circumstance, but probably one we'll run into for other apps as well. I've attached the file below so someone can check to make sure I didn't duplicate some by mistake (I triple checked this time though, so....). |
Beta Was this translation helpful? Give feedback.
-
Thanks for clarifying, but is there a better way of approaching this? |
Beta Was this translation helpful? Give feedback.
-
Description of the new feature/enhancement
How should we manage those apps that have a dedicated installer for each language?
Popular packages are Firefox and WinRAR.
I tried using "Add Locale" within
YAMLCreate.ps1
, but only allows the app info to be localized, not an installer.I tried adding manually another installer to the
Mozilla.Firefox.installer.yaml
, but the validator marked the additional package as duplicated.Proposed technical implementation details (optional)
When using
Add Locale
feature, add the option for a dedicated installer.The main
PackageName.installer.yaml
will still have a default English package installed by default, but if the user locale or setting is set to a specific language, install the package from the corresponding language YAML.I hope it makes sense.
Beta Was this translation helpful? Give feedback.
All reactions