i18n: add missing translations

This commit is contained in:
Peter Dave Hello
2025-08-20 22:14:23 +08:00
parent 7452b87877
commit 45180e829a
82 changed files with 1417 additions and 99 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ print("${endTag}")
basicSetup,
keymap.of([{ key: 'Tab', run: acceptCompletion }, indentWithTab]),
indentUnit.of(' '),
placeholder('Enter your code here...'),
placeholder($i18n.t('Enter your code here...')),
EditorView.updateListener.of((e) => {
if (e.docChanged) {
_value = e.state.doc.toString();
+6 -4
View File
@@ -1,6 +1,8 @@
<script lang="ts">
import { DropdownMenu } from 'bits-ui';
import { createEventDispatcher } from 'svelte';
import { createEventDispatcher, getContext } from 'svelte';
const i18n = getContext('i18n');
import { flyAndScale } from '$lib/utils/transitions';
@@ -31,15 +33,15 @@
transition={flyAndScale}
>
<DropdownMenu.Item class="flex items-center px-3 py-2 text-sm font-medium">
<div class="flex items-center">Profile</div>
<div class="flex items-center">{$i18n.t('Profile')}</div>
</DropdownMenu.Item>
<DropdownMenu.Item class="flex items-center px-3 py-2 text-sm font-medium">
<div class="flex items-center">Profile</div>
<div class="flex items-center">{$i18n.t('Profile')}</div>
</DropdownMenu.Item>
<DropdownMenu.Item class="flex items-center px-3 py-2 text-sm font-medium">
<div class="flex items-center">Profile</div>
<div class="flex items-center">{$i18n.t('Profile')}</div>
</DropdownMenu.Item>
</DropdownMenu.Content>
</slot>
+1 -1
View File
@@ -85,7 +85,7 @@
{:else}
<div>
<div class="block px-5 py-2 text-sm text-gray-700 dark:text-gray-100">
No results found
{$i18n.t('No results found')}
</div>
</div>
{/each}
+2 -2
View File
@@ -70,7 +70,7 @@
{:else if (valvesSpec.properties[property]?.type ?? null) === 'boolean'}
<div class="flex justify-between items-center">
<div class="text-xs text-gray-500">
{valves[property] ? 'Enabled' : 'Disabled'}
{valves[property] ? $i18n.t('Enabled') : $i18n.t('Disabled')}
</div>
<div class=" pr-2">
@@ -173,5 +173,5 @@
</div>
{/each}
{:else}
<div class="text-xs">No valves</div>
<div class="text-xs">{$i18n.t('No valves')}</div>
{/if}