You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/tauri-config-schema/schema.json
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1715,6 +1715,16 @@
1715
1715
"type": "string"
1716
1716
}
1717
1717
},
1718
+
"customLanguageFiles": {
1719
+
"description": "A key-value pair where the key is the language and the value is the path to a custom `.nsh` file that holds the translated text for tauri's custom messages.\n\nSee <https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/templates/nsis-languages/English.nsh> for an example `.nsh` file.\n\n**Note**: the key must be a valid NSIS language and it must be added to [`NsisConfig`] languages array,",
1720
+
"type": [
1721
+
"object",
1722
+
"null"
1723
+
],
1724
+
"additionalProperties": {
1725
+
"type": "string"
1726
+
}
1727
+
},
1718
1728
"displayLanguageSelector": {
1719
1729
"description": "Whether to display a language selector dialog before the installer and uninstaller windows are rendered or not. By default the OS language is selected, with a fallback to the first language in the `languages` array.",
Copy file name to clipboardExpand all lines: core/tauri-utils/src/config.rs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -461,6 +461,13 @@ pub struct NsisConfig {
461
461
///
462
462
/// See <https://github.com/kichik/nsis/tree/9465c08046f00ccb6eda985abbdbf52c275c6c4d/Contrib/Language%20files> for the complete list of languages.
463
463
publanguages:Option<Vec<String>>,
464
+
/// A key-value pair where the key is the language and the
465
+
/// value is the path to a custom `.nsh` file that holds the translated text for tauri's custom messages.
466
+
///
467
+
/// See <https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/templates/nsis-languages/English.nsh> for an example `.nsh` file.
468
+
///
469
+
/// **Note**: the key must be a valid NSIS language and it must be added to [`NsisConfig`] languages array,
Copy file name to clipboardExpand all lines: tooling/bundler/src/bundle/settings.rs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -274,6 +274,13 @@ pub struct NsisSettings {
274
274
///
275
275
/// See <https://github.com/kichik/nsis/tree/9465c08046f00ccb6eda985abbdbf52c275c6c4d/Contrib/Language%20files> for the complete list of languages.
276
276
publanguages:Option<Vec<String>>,
277
+
/// An key-value pair where the key is the language and the
278
+
/// value is the path to a custom `.nsi` file that holds the translated text for tauri's custom messages.
279
+
///
280
+
/// See <https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/templates/nsis-languages/English.nsh> for an example `.nsi` file.
281
+
///
282
+
/// **Note**: the key must be a valid NSIS language and it must be added to [`NsisConfig`]languages array,
log::warn!("Custom tauri messages for {lang} are not translated.\nIf it is a valid language listed on <https://github.com/kichik/nsis/tree/9465c08046f00ccb6eda985abbdbf52c275c6c4d/Contrib/Language%20files>, please open a Tauri feature request\n or you can provide a custom language file for it in `tauri.conf.json > tauri > bundle > windows > nsis > custom_language_files`");
anyhow::anyhow!("Language {lang} not implemented. If it is a valid language listed on <https://github.com/kichik/nsis/tree/9465c08046f00ccb6eda985abbdbf52c275c6c4d/Contrib/Language%20files>, please open a Tauri feature request")
Copy file name to clipboardExpand all lines: tooling/cli/schema.json
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1715,6 +1715,16 @@
1715
1715
"type": "string"
1716
1716
}
1717
1717
},
1718
+
"customLanguageFiles": {
1719
+
"description": "A key-value pair where the key is the language and the value is the path to a custom `.nsh` file that holds the translated text for tauri's custom messages.\n\nSee <https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/templates/nsis-languages/English.nsh> for an example `.nsh` file.\n\n**Note**: the key must be a valid NSIS language and it must be added to [`NsisConfig`] languages array,",
1720
+
"type": [
1721
+
"object",
1722
+
"null"
1723
+
],
1724
+
"additionalProperties": {
1725
+
"type": "string"
1726
+
}
1727
+
},
1718
1728
"displayLanguageSelector": {
1719
1729
"description": "Whether to display a language selector dialog before the installer and uninstaller windows are rendered or not. By default the OS language is selected, with a fallback to the first language in the `languages` array.",
0 commit comments