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: CONTRIBUTING.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ Contributing to the Strapi documentation implies 2 steps:
17
17
18
18
2.[Submit a pull request](#-pull-requests) for review.
19
19
20
+
By default, all external contributions are automatically labeled `contribution` to be apart of the [Docs Contribution Program](https://strapi.notion.site/Documentation-Contribution-Program-1d08f359807480d480fdde68bb7a5a71), which rewards contributors with points (based on the amount of updates in the pull request) that can then be used in the Strapi Shop to get Strapi goodies. If you do not wish to take part in the program, let the Strapi Documentation team know and the `contribution` label will be removed from your pull request.
21
+
20
22
## 🦖 Docusaurus
21
23
22
24
Strapi’s documentation is built with the React- and Markdown-based [Docusaurus](https://docusaurus.io) framework.
@@ -98,6 +100,7 @@ To submit your contribution for review:
98
100
99
101
That’s it! 🥳 Once the pull request is [reviewed and approved](#review-and-management-of-pull-requests), the Strapi Documentation team will merge it, and the content will be live on [docs.strapi.io](http://docs.strapi.io) a few minutes later. 🚀
100
102
103
+
If your contribution takes part in the [Docs Contribution Program](https://strapi.notion.site/Documentation-Contribution-Program-1d08f359807480d480fdde68bb7a5a71), as soon as your pull request is merged, you should receive an email with a link to the Strapi Shop where points you have earned will have been granted to your account.
Copy file name to clipboardExpand all lines: docusaurus/docs/cms/features/internationalization.md
+44-4Lines changed: 44 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ tags:
11
11
- features
12
12
---
13
13
14
+
import StrapiAiCredits from '/docs/snippets/strapi-ai-credits.md'
15
+
14
16
# Internationalization (i18n)
15
17
16
18
<Tldr>
@@ -83,6 +85,21 @@ It is not possible to create custom locales. Locales can only be created based o
83
85
}}
84
86
/>
85
87
88
+
#### Enabling AI-powered internationalization
89
+
<GrowthBadge />
90
+
91
+
AI-Powered Internationalization enables automatic translations for all the locales in a project when the content in the default locale is updated. This enables content editors to have their content translated into multiple languages within a few seconds.
92
+
93
+
AI-powered Internationalization is disabled by default. To enable it, go to <Iconname="gear-six" /> *Settings > Global Settings > Internationalization* and set <Iconname="sparkle" /> _AI Translations_ to _Enabled_.
A `STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE`[environment variable](/cms/configurations/environment#strapi) can be configured to set the default locale for your environment. The value used for this variable should be an ISO country code from <ExternalLinkto="https://github.com/strapi/strapi/blob/main/packages/plugins/i18n/server/src/constants/iso-locales.json"text="the 500+ pre-created list of locales"/>.
@@ -105,10 +122,6 @@ To translate content in another locale:
105
122
2. Choose the locale in which you want to translate your content.
106
123
3. Translate your content by filling up your content-type's fields.
107
124
108
-
:::tip
109
-
Click on the <Iconname="download-simple" /> *Fill in from another locale* button, in the top right corner, for all non relational fields to be filled up with the values of another chosen locale. It can be useful if you do not remember what was the exact content in another locale.
110
-
:::
111
-
112
125
<ThemedImage
113
126
alt="Managing locales with i18n"
114
127
sources={{
@@ -117,6 +130,33 @@ Click on the <Icon name="download-simple" /> *Fill in from another locale* butto
117
130
}}
118
131
/>
119
132
133
+
:::tip
134
+
Click on the <Iconname="globe-hemisphere-west" /> *Fill in from another locale* button, in the top right corner, for all non relational fields to be filled up with the values of another chosen locale. It can be useful if you do not remember what was the exact content in another locale. This button is not visible if you've enabled [AI-powered internationalization](#ai-powered-internationalization) since translations are automatically handled by Strapi AI.
[When enabled](#enabling-ai-powered-internationalization), AI-powered internationalization enables automatic translations for all the locales in a project when the source content is updated. This enables content editors to have their content translated into multiple languages within a few seconds. The idea behind the feature is to ensure users only manually fill in content in the default locale, and Strapi AI translates it for all other existing locales.
141
+
142
+
Once enabled, whenever you edit a content-type in the default locale and click **Save**, all other locales for the content-type should be translated automatically, which will be confirmed by an _All locales have been translated_ notification. Using this feature consumes Strapi AI credits.
AI-powered internationalization only works one way, keeping the default locale content as the unique source of truth. Consequently, once the feature is enabled:
154
+
- Editing and saving content for any locale othen than the default one will not trigger automatic translations.
155
+
- When editing the content for the default locale, the manual modifications made to other locales will be overwritten.
156
+
:::
157
+
158
+
<StrapiAiCredits />
159
+
120
160
### Usage with APIs
121
161
122
162
Localized content can be requested, created, updated, and deleted for a given locale through the various front-end APIs accessible from [Strapi's Content API](/cms/api/content-api):
0 commit comments