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.|
102
102
103
103
_\* An asterisk denotes that a property is required._
104
104
@@ -222,7 +222,7 @@ The `locale` arg will only accept valid locales, but locales will be formatted a
222
222
values (dashes or special characters will be converted to underscores, spaces will be removed, etc.). If you are curious
223
223
to see how locales are auto-formatted, you can use the [GraphQL playground](/docs/graphql/overview#graphql-playground).
224
224
225
-
The `fallbackLocale` arg will accept valid locales as well as `none` to disable falling back.
225
+
The `fallbackLocale` arg will accept valid locales, an array of locales, as well as `none` to disable falling back.
226
226
227
227
**Example:**
228
228
@@ -247,7 +247,7 @@ query {
247
247
248
248
You can specify `locale` as well as `fallbackLocale` within the Local API as well as properties on the `options`
249
249
argument. The `locale` property will accept any valid locale, and the `fallbackLocale` property will accept any valid
250
-
locale as well as `'null'`, `'false'`, `false`, and `'none'`.
250
+
locale, array of locales, 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. |
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.|
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