mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-05 15:07:23 +02:00
Add chinese translation
Based on https://github.com/dyxang/Fantasy-Map-Generator-Chinese
This commit is contained in:
parent
7eeb1f76c3
commit
c5f1577c4b
12 changed files with 3359 additions and 980 deletions
|
|
@ -523,8 +523,8 @@ function applyStoredOptions() {
|
|||
|
||||
if (stored("tooltipSize")) changeTooltipSize(stored("tooltipSize"));
|
||||
if (stored("regions")) changeStatesNumber(stored("regions"));
|
||||
if (stored("language")) changeLanguage(stored("language"));
|
||||
else changeLanguage("en");
|
||||
if (stored("language")) setLanguage(stored("language"));
|
||||
else setLanguage("en");
|
||||
|
||||
uiSize.max = uiSize.max = getUImaxSize();
|
||||
if (stored("uiSize")) changeUiSize(+stored("uiSize"));
|
||||
|
|
@ -659,10 +659,15 @@ function changeEra() {
|
|||
options.era = eraInput.value;
|
||||
}
|
||||
|
||||
function changeLanguage(value) {
|
||||
function setLanguage(value) {
|
||||
options.language = value;
|
||||
}
|
||||
|
||||
function changeLanguage(value) {
|
||||
setLanguage(value);
|
||||
changeLocale();
|
||||
}
|
||||
|
||||
async function openTemplateSelectionDialog() {
|
||||
const HeightmapSelectionDialog = await import("../dynamic/heightmap-selection.js?v=1.96.00");
|
||||
HeightmapSelectionDialog.open();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue