-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- main improvements - de translations can now be edited from the admin interface - in frontend code we now have autocomplete for translation ids - change in use - i18n-svelte -> lib/tr.ts - `$locale` -> `tr.locale` - `$locales` -> `tr.locales` - `$_('a.b')` -> `tr.d.a.b` - to add a text, add the id to lib/translations.ts - code changes - remove i18n-svelte library - remove locales/de.json: this is now included in the static folder of the deployed website, not part of the frontend source code anymore - use camel case for all translation ids for consistency and to allow use without quotes - de is now also editable in admin interface - resolves #211 TODO: relabel? tr -> i18n, .d -> .tr, i.e. `i18n.tr.a.b`
Showing
51 changed files
with
683 additions
and
685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<svelte:options runes={true} /> | ||
|
||
<script lang="ts"> | ||
import { tr } from "$lib/tr.svelte"; | ||
import TrashBinOutline from "flowbite-svelte-icons/TrashBinOutline.svelte"; | ||
import Button from "flowbite-svelte/Button.svelte"; | ||
import { _ } from "svelte-i18n"; | ||
let { onclick }: { onclick: (event: Event) => void } = $props(); | ||
</script> | ||
|
||
<Button color="red" {onclick}><TrashBinOutline class="me-2 h-5 w-5" /> {$_('admin.delete')}</Button> | ||
<Button color="red" {onclick}><TrashBinOutline class="me-2 h-5 w-5" /> {tr.d.admin.delete}</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<svelte:options runes={true} /> | ||
|
||
<script lang="ts"> | ||
import { tr } from "$lib/tr.svelte"; | ||
import EditOutline from "flowbite-svelte-icons/EditOutline.svelte"; | ||
import Button from "flowbite-svelte/Button.svelte"; | ||
import { _ } from "svelte-i18n"; | ||
let { onclick }: { onclick: (event: Event) => void } = $props(); | ||
</script> | ||
|
||
<Button color="yellow" {onclick}><EditOutline class="me-2 h-5 w-5" /> {$_('admin.edit')}</Button> | ||
<Button color="yellow" {onclick}><EditOutline class="me-2 h-5 w-5" /> {tr.d.admin.edit}</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.