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
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/05-Plugins/10-i18n.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -384,7 +384,7 @@ If you don't use params, you can use `tr` without third param:
384
384
> So to collect all translations you should use your app for some time and make sure all strings are used at
385
385
> In future we plan to add backend strings collection in same way like frontend strings are collected.
386
386
387
-
## Translating messaged within bulk action
387
+
## Translating messages within bulk action
388
388
389
389
Label adn confirm strings of bulk actions are already translated by AdminForth, but
390
390
`succesMessage` returned by action function should be translated manually because of the dynamic nature of the message.
@@ -422,9 +422,9 @@ import { admin } from '../index';
422
422
423
423
## Translating external application
424
424
425
-
You can use this module not only to translate Admin area of your application but also to translate other services of your application.
426
-
This will allow you to reuse the same functionality and AI completion adapters for all your translations. For example in this app we
427
-
will consider that we have a Nuxt.js SEO-centric frontend which we want to translate with [vue-i18n](https://vue-i18n.intlify.dev/).
425
+
You can use this module not only to translate admin area of your application but also to translate other parts like SEO-facing or user-facing services.
426
+
This will allow you to reuse the same functionality and AI completion adapters for all your translations and manage them in one place.
427
+
For example in this app we will consider translating a Nuxt.js SEO-centric frontend which we want to translate with [vue-i18n](https://vue-i18n.intlify.dev/).
428
428
429
429
To do it you need to use 2 exposed methods from the plugin: `feedCategoryTranslations` and `getCategoryTranslations`.
430
430
@@ -467,7 +467,6 @@ You can add extract command to `package.json`:
0 commit comments