Skip to content

12. Deploying your Translated App

tetherscript edited this page Feb 16, 2025 · 7 revisions

When you deploy or publish your app, you do not need to include any additional files, libraries or packages.

Do not include the contents of the \Translator folder, as it is not needed by your deployed app.

The Translator Translate function modifies the files in the target\Strings???\Resource.resw files. These .resw files get processed and bundled into a .pri (Package Resource Index) file at build time.

The only WinUiTranslator code used in a deployed app is in the TLocalized class. If you don't use it's functions for dynamic translation or specials, it won't even be compiled into the build.

Important

Take a close look at what is in TLocalized.cs. It's pretty basic, but best to know what it does. Version control is an issue here.

If you have linked to TLocalized.cs, it won't show up in version control if it changes when you get the latest version of WinUITranslator, so is it still safe? If you copy TLocalized.cs to your project folder, it will be included in version control, so you can at least see the differences.

Clone this wiki locally