You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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`
- main improvements
- all language texts can now be edited from the admin interface
- in frontend code we now have autocomplete for translation ids
- change in use
- i18n-svelte -> lib/i18n.svelte
- `$locale` -> `i18n.locale`
- `$locales` -> `i18n.locales`
- `$_('a.b')` -> `i18n.tr.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
Right now de.json is hard coded, some technical issues to resolve, but this should ideally also be editable by the admins from the admin interface
The text was updated successfully, but these errors were encountered: