diff --git a/android/cli/commands/_build.js b/android/cli/commands/_build.js index b230e62b55b..052395b4446 100644 --- a/android/cli/commands/_build.js +++ b/android/cli/commands/_build.js @@ -3206,7 +3206,8 @@ AndroidBuilder.prototype.generateI18N = async function generateI18N() { root.appendChild(dom.createTextNode('\n')); // Create the XML file under the Android "res/values-" folder. - const localeSuffixName = (locale === 'en' ? '' : '-' + resolveRegionName(locale)); + const defaultLang = this.tiapp.defaultLang || 'en'; + const localeSuffixName = (locale === defaultLang ? '' : '-' + resolveRegionName(locale)); const dirPath = path.join(this.buildAppMainResDir, `values${localeSuffixName}`); const filePath = path.join(dirPath, 'ti_i18n_strings.xml'); this.logger.debug(__('Writing %s strings => %s', locale.cyan, filePath.cyan));