✨ add german translation
This commit is contained in:
15 files changed
+3282
-4101
No files matched your search
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
const props = defineProps<{ title?: string; buttonLabel?: string }>();
|
||||
const emit = defineEmits<{ submit: [name: string] }>();
|
||||
const { t } = useI18n();
|
||||
|
||||
const name = ref('');
|
||||
|
||||
@@ -17,7 +18,7 @@ function onSubmit() {
|
||||
for="name"
|
||||
class="block text-sm font-medium text-stone-700 dark:text-stone-300"
|
||||
>
|
||||
{{ props.title ?? "What's your name?" }}
|
||||
{{ props.title ?? t('nameForm.defaultTitle') }}
|
||||
</label>
|
||||
<input
|
||||
id="name"
|
||||
@@ -26,14 +27,14 @@ function onSubmit() {
|
||||
autocomplete="name"
|
||||
required
|
||||
class="mt-1 block w-full rounded-xl border border-stone-300 bg-white px-3 py-2 text-base text-stone-900 shadow-sm placeholder:text-stone-400 focus:border-orange-400 focus:outline-none focus:ring-2 focus:ring-orange-200 dark:border-stone-700 dark:bg-stone-900 dark:text-stone-100 dark:placeholder:text-stone-500 dark:focus:ring-orange-900"
|
||||
placeholder="Your name"
|
||||
:placeholder="t('nameForm.placeholder')"
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
type="submit"
|
||||
class="w-full rounded-xl bg-orange-500 px-4 py-2 font-medium text-white shadow-sm transition-colors hover:bg-orange-600 active:bg-orange-600"
|
||||
>
|
||||
{{ props.buttonLabel ?? 'Continue' }}
|
||||
{{ props.buttonLabel ?? t('nameForm.continue') }}
|
||||
</button>
|
||||
</form>
|
||||
</template>
|
||||
Reference in new issue
Block a user