diff options
| -rw-r--r-- | doc/i18n-technical.md | 3 | ||||
| -rw-r--r-- | src/components/About.svelte | 3 | ||||
| -rw-r--r-- | src/components/LocaleSelector.svelte | 2 | ||||
| -rw-r--r-- | src/lib/translations/index.js | 4 | ||||
| -rw-r--r-- | src/lib/translations/lang.json | 4 | ||||
| -rw-r--r-- | src/routes/+layout.server.js | 2 | ||||
| -rw-r--r-- | src/routes/[username]/receive/+page.svelte | 2 | ||||
| -rw-r--r-- | src/routes/invoice/[id]/+page.svelte | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/doc/i18n-technical.md b/doc/i18n-technical.md index b59934ae..a0d64938 100644 --- a/doc/i18n-technical.md +++ b/doc/i18n-technical.md @@ -48,6 +48,7 @@ CoinOS also has a `LocaleSelector` component, which should be used to select loc ## The Guided Translation Script -CoinOS has a Python script that helps you with the technical parts of translation. It is located at `src/locales/guided_translation.py`. It also has some utility functions: +CoinOS has a Python script that helps you with the technical parts of translation. It is located at `src/locales/guided_translation.py`. It also has some utility functions: + - `nested_dict_keys` - gets a list of keys of a nested dictionary in dot-separated shallow format (e.g. a.b.c) - `localize_string` - localizes a string interactively diff --git a/src/components/About.svelte b/src/components/About.svelte index 257fc49c..794a5107 100644 --- a/src/components/About.svelte +++ b/src/components/About.svelte @@ -56,8 +56,7 @@ <ul class="w-full mx-auto md:w-[700px] lg:w-[500px] xl:w-auto text-secondary px-1 md:px-10 text-xl list-disc space-y-5" - > - </ul> + /> </div> <div class="mt-20"> diff --git a/src/components/LocaleSelector.svelte b/src/components/LocaleSelector.svelte index 4672a564..ec5bc781 100644 --- a/src/components/LocaleSelector.svelte +++ b/src/components/LocaleSelector.svelte @@ -1,5 +1,5 @@ <script> - import { locale, locales } from '$lib/translations'; + import { locale, locales } from '$lib/translations'; export let style; </script> diff --git a/src/lib/translations/index.js b/src/lib/translations/index.js index 2bc5477e..023da884 100644 --- a/src/lib/translations/index.js +++ b/src/lib/translations/index.js @@ -2,8 +2,8 @@ import i18n from 'sveltekit-i18n'; import translations from './translations'; const config = { - initLocale: 'en', - translations, + initLocale: 'en', + translations }; export const { t, l, locales, locale } = new i18n(config); diff --git a/src/lib/translations/lang.json b/src/lib/translations/lang.json index 28d8fb36..6cf55908 100644 --- a/src/lib/translations/lang.json +++ b/src/lib/translations/lang.json @@ -1,4 +1,4 @@ { - "en": "English", - "fr": "French" + "en": "English", + "fr": "French" } diff --git a/src/routes/+layout.server.js b/src/routes/+layout.server.js index ddce4b31..2d95a899 100644 --- a/src/routes/+layout.server.js +++ b/src/routes/+layout.server.js @@ -1,4 +1,4 @@ -import { error } from "@sveltejs/kit"; +import { error } from '@sveltejs/kit'; import cookie from 'cookie'; import { protectedRoutes } from '$lib/utils'; import { get } from '$lib/utils'; diff --git a/src/routes/[username]/receive/+page.svelte b/src/routes/[username]/receive/+page.svelte index 3ac2aa27..181f8ea6 100644 --- a/src/routes/[username]/receive/+page.svelte +++ b/src/routes/[username]/receive/+page.svelte @@ -5,7 +5,7 @@ import { invoiceAmount, invoiceAmountFiat, selectedRate, user } from '$lib/store'; import { post, warning } from '$lib/utils'; import { page } from '$app/stores'; - import { t } from '$lib/translations'; + import { t } from '$lib/translations'; let useFiat = true; let amountFiat = 0; diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index 67105831..19809f9f 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -6,7 +6,7 @@ import { goto } from '$app/navigation'; import { onMount } from 'svelte'; import { copy } from '$lib/utils'; - import { t } from '$lib/translations'; + import { t } from '$lib/translations'; export let data; $: ({ amount, id, rate, status, text, username } = data); |
