diff --git a/README.md b/README.md index 6c35ceb..5d0c2dc 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,9 @@ const config = ({ export const { t, locale, locales, loading, loadTranslations } = new i18n(config); ``` -...load your translations in `__layout.svelte`... +...load your translations in `+layout.js`... -```svelte - ``` ...and include your translations within pages and components. diff --git a/docs/README.md b/docs/README.md index 48cab1c..65be0cc 100644 --- a/docs/README.md +++ b/docs/README.md @@ -50,7 +50,6 @@ Custom preprocess function `(input) => JSON.parse(JSON.stringify(input).replace( {"a": {"b": [{"c": {"d": "🦄"}}, {"c": {"d": 2}}]}} ``` - ### `parser`: __[Parser.T](https://github.com/sveltekit-i18n/base/blob/master/src/types.ts)__ This property defines translation syntax you want to use. For more, see [Parsers](https://github.com/sveltekit-i18n/parsers#readme).