feat: make non default locales optional (#1109)
This commit is contained in:
committed by
GitHub
parent
69fc27ab6b
commit
1d0141fcc8
@ -25,6 +25,10 @@ i18n:
|
||||
# Optional, defaults to the first item in locales.
|
||||
# The locale to be used for fields validation and as a baseline for the entry.
|
||||
default_locale: en
|
||||
|
||||
# Optional, defaults to true.
|
||||
# Enforce required fields in non-default locales
|
||||
enforce_required_non_default: false
|
||||
```
|
||||
|
||||
```js
|
||||
@ -44,7 +48,13 @@ i18n: {
|
||||
* Optional, defaults to the first item in locales.
|
||||
* The locale to be used for fields validation and as a baseline for the entry.
|
||||
*/
|
||||
default_locale: 'en'
|
||||
default_locale: 'en',
|
||||
|
||||
/**
|
||||
* Optional, defaults to true.
|
||||
* Enforce required fields in non-default locales
|
||||
*/
|
||||
enforce_required_non_default: false
|
||||
},
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user