mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Improve translations and add experimental warning
This commit is contained in:
@@ -225,3 +225,18 @@ body[data-style="dark"] .card a {
|
||||
body[data-style="dark"] .card a:hover {
|
||||
color: #ccc !important;
|
||||
}
|
||||
|
||||
body[data-style="dark"] .alert-danger {
|
||||
background-color: #6d2126;
|
||||
border-color: #5e1b20;
|
||||
color: #dfc4c7;
|
||||
}
|
||||
|
||||
body[data-style="dark"] .alert-danger svg {
|
||||
fill: #dfc4c7;
|
||||
}
|
||||
|
||||
.alert-danger svg {
|
||||
fill: #6d2126;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ changeTheme(localStorage.getItem('theme'))
|
||||
function changeTheme(theme) {
|
||||
console.log(theme);
|
||||
if (theme === null) {
|
||||
theme = 'light';
|
||||
theme = 'dark';
|
||||
}
|
||||
$('body').attr('data-style', theme);
|
||||
localStorage.setItem('theme', theme);
|
||||
@@ -21,6 +21,9 @@ function updateView() {
|
||||
$('#structure').removeClass('d-none').html('');
|
||||
$('#descriptionSpan').attr('data-i18n', structure.description);
|
||||
$('title').attr('data-i18n', structure.title);
|
||||
if (structure.id === 'worldgen') {
|
||||
$('#structure').append('<div class="alert alert-danger" role="alert"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 000 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 00.01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"></path></svg><span data-i18n="worldgen.warning"></span></div>')
|
||||
}
|
||||
$('#structure').append($component);
|
||||
if (structure.id === 'worldgen') {
|
||||
$('#versionLabel').addClass('d-none')
|
||||
|
||||
@@ -39,6 +39,11 @@
|
||||
"biome_source.preset": "Biomes Preset",
|
||||
"biome_source.seed": "Biomes Seed",
|
||||
"biome_source.type": "Biome Source",
|
||||
"biome_source.type.fixed": "Fixed",
|
||||
"biome_source.type.multi_noise": "Multi Noise",
|
||||
"biome_source.type.checkerboard": "Checkerboard",
|
||||
"biome_source.type.vanilla_layered": "Vanilla Layered",
|
||||
"biome_source.type.the_end": "The End",
|
||||
"child_add": "Add Child",
|
||||
"condition.block": "Block",
|
||||
"condition.block_state": "Block State",
|
||||
@@ -331,6 +336,9 @@
|
||||
"gamemode.spectator": "Spectator",
|
||||
"gamemode.survival": "Survival",
|
||||
"generator.type": "Type",
|
||||
"generator.type.noise": "Default",
|
||||
"generator.type.flat": "Superflat",
|
||||
"generator.type.debug": "Debug World",
|
||||
"generator.seed": "Dimension Seed",
|
||||
"generator.settings": "Generator Settings",
|
||||
"generator.settings.bedrock_roof_position": "Bedrock Roof Position",
|
||||
@@ -357,6 +365,9 @@
|
||||
"generator.settings.noise.top_slide.target": "Top Slide Target",
|
||||
"generator.settings.noise.top_slide.size": "Top Slide Size",
|
||||
"generator.settings.noise.top_slide.offset": "Top Slide Offset",
|
||||
"generator.settings.presets.overworld": "Overworld",
|
||||
"generator.settings.presets.nether": "Nether",
|
||||
"generator.settings.presets.end": "End",
|
||||
"generator.settings.structures": "Structures",
|
||||
"generator.settings.structures_add": "Add Structure",
|
||||
"generator.settings.structures_remove": "Remove Structure",
|
||||
@@ -426,6 +437,7 @@
|
||||
"placeholder.fluid_state": "A fluid state key",
|
||||
"placeholder.objective": "An scoreboard objective",
|
||||
"placeholder.recipe": "An recipe ID",
|
||||
"placeholder.structure": "A structure ID",
|
||||
"pool.bonus_rolls": "Bonus Rolls",
|
||||
"pool.rolls": "Rolls",
|
||||
"pool_add": "Add Pool",
|
||||
@@ -548,5 +560,6 @@
|
||||
"unset": "Unset",
|
||||
"world.generate_features": "Generate Features",
|
||||
"world.bonus_chest": "Spawn Bonus Chest",
|
||||
"world.seed": "Seed"
|
||||
"world.seed": "Seed",
|
||||
"worldgen.warning": "This feature is highly experimental and unstable. It can change in future versions. Expect the game to crash when creating worlds."
|
||||
}
|
||||
|
||||
@@ -89,6 +89,7 @@
|
||||
{
|
||||
"id": "type",
|
||||
"translate": "generator.type",
|
||||
"translateValue": "generator.type",
|
||||
"type": "enum",
|
||||
"values": [
|
||||
"minecraft:noise",
|
||||
@@ -109,6 +110,7 @@
|
||||
{
|
||||
"id": "type",
|
||||
"translate": "biome_source.type",
|
||||
"translateValue": "biome_source.type",
|
||||
"type": "enum",
|
||||
"values": [
|
||||
"minecraft:fixed",
|
||||
@@ -150,7 +152,7 @@
|
||||
{
|
||||
"id": "settings",
|
||||
"translate": "generator.settings",
|
||||
"translateValue": "dimension",
|
||||
"translateValue": "generator.settings.presets",
|
||||
"type": "object",
|
||||
"color": "dark",
|
||||
"collapse": true,
|
||||
|
||||
Reference in New Issue
Block a user