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
|**`code`**\*| Unique code to identify the language throughout the APIs for `locale` and `fallbackLocale`|
99
-
|**`label`**| A string to use for the selector when choosing a language, or an object keyed on the i18n keys for different languages in use. |
100
-
|**`rtl`**| A boolean that when true will make the admin UI display in Right-To-Left. |
101
-
|**`fallbackLocale`**| The code for this language to fallback to when properties of a document are not present. This can be a single locale or array of locales. |
|**`code`**\*| Unique code to identify the language throughout the APIs for `locale` and `fallbackLocale`|
99
+
|**`label`**| A string to use for the selector when choosing a language, or an object keyed on the i18n keys for different languages in use. |
100
+
|**`rtl`**| A boolean that when true will make the admin UI display in Right-To-Left. |
101
+
|**`fallbackLocale`**| The code for this language to fallback to when properties of a document are not present. You can enable `experimental.multipleFallbackLocales` to allow an array of locales. |
102
102
103
103
_\* An asterisk denotes that a property is required._
104
104
@@ -150,9 +150,10 @@ export default buildConfig({
150
150
151
151
The following experimental options are available related to localization:
|**`localizeStatus`**|**Boolean.** When `true`, shows document status per locale in the admin panel instead of always showing the latest overall status. Opt-in for backwards compatibility. Defaults to `false`. |
|**`localizeStatus`**|**Boolean.** When `true`, shows document status per locale in the admin panel instead of always showing the latest overall status. Opt-in for backwards compatibility. Defaults to `false`. |
156
+
|**`multipleFallbackLocales`**|**Boolean.** When `true`, allows `fallbackLocale` to accept an array of locales in find queries and locale configuration. Defaults to `false`. |
156
157
157
158
## Field Localization
158
159
@@ -222,7 +223,7 @@ The `locale` arg will only accept valid locales, but locales will be formatted a
222
223
values (dashes or special characters will be converted to underscores, spaces will be removed, etc.). If you are curious
223
224
to see how locales are auto-formatted, you can use the [GraphQL playground](/docs/graphql/overview#graphql-playground).
224
225
225
-
The `fallbackLocale` arg will accept valid locales, an array of locales, as well as `none` to disable falling back.
226
+
The `fallbackLocale` arg will accept valid locales as well as `none` to disable falling back.
226
227
227
228
**Example:**
228
229
@@ -247,7 +248,7 @@ query {
247
248
248
249
You can specify `locale` as well as `fallbackLocale` within the Local API as well as properties on the `options`
249
250
argument. The `locale` property will accept any valid locale, and the `fallbackLocale` property will accept any valid
250
-
locale, array of locales, as well as `'null'`, `'false'`, `false`, and `'none'`.
251
+
locale as well as `'null'`, `'false'`, `false`, and `'none'`.
Copy file name to clipboardExpand all lines: docs/local-api/overview.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ You can specify more options within the Local API vs. REST or GraphQL due to the
71
71
|`locale`| Specify [locale](/docs/configuration/localization) for any returned documents. |
72
72
|`select`| Specify [select](../queries/select) to control which fields to include to the result. |
73
73
|`populate`| Specify [populate](../queries/select#populate) to control which fields to include to the result from populated documents. |
74
-
|`fallbackLocale`| Specify a [fallback locale](/docs/configuration/localization) to use for any returned documents. This can be a single locale or array of locales.|
74
+
|`fallbackLocale`| Specify a [fallback locale](/docs/configuration/localization) to use for any returned documents. |
75
75
|`overrideAccess`| Skip access control. By default, this property is set to true within all Local API operations. |
76
76
|`overrideLock`| By default, document locks are ignored (`true`). Set to `false` to enforce locks and prevent operations when a document is locked by another user. [More details](../admin/locked-documents). |
77
77
|`user`| If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks. |
0 commit comments