@sveltia/cms 0.129.4 → 0.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/sveltia-cms.js +230 -229
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +234 -233
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +2 -2
- package/schema/sveltia-cms.json +1 -1
- package/types/public.d.ts +17 -2
package/types/public.d.ts
CHANGED
|
@@ -1237,7 +1237,7 @@ export type Field = StandardField | CustomField;
|
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Internationalization (i18n) file structure type.
|
|
1239
1239
|
*/
|
|
1240
|
-
export type I18nFileStructure = "single_file" | "multiple_files" | "multiple_folders" | "multiple_folders_i18n_root";
|
|
1240
|
+
export type I18nFileStructure = "single_file" | "multiple_files" | "multiple_folders" | "multiple_folders_i18n_root" | "multiple_root_folders";
|
|
1241
1241
|
/**
|
|
1242
1242
|
* Global, collection-level or collection file-level i18n options. See the
|
|
1243
1243
|
* [documentation](https://sveltiacms.app/en/docs/i18n) for details.
|
|
@@ -1245,7 +1245,8 @@ export type I18nFileStructure = "single_file" | "multiple_files" | "multiple_fol
|
|
|
1245
1245
|
export type I18nOptions = {
|
|
1246
1246
|
/**
|
|
1247
1247
|
* File structure for entry collections. File/singleton
|
|
1248
|
-
* collection must define the structure using `{{locale}}` in the `file` option.
|
|
1248
|
+
* collection must define the structure using `{{locale}}` in the `file` option.
|
|
1249
|
+
* `multiple_folders_i18n_root` has been deprecated in favor of `multiple_root_folders`. See the
|
|
1249
1250
|
* [documentation](https://sveltiacms.app/en/docs/i18n#managing-content-structure) for details.
|
|
1250
1251
|
*/
|
|
1251
1252
|
structure: I18nFileStructure;
|
|
@@ -1291,8 +1292,22 @@ export type I18nOptions = {
|
|
|
1291
1292
|
* `multiple_files` i18n structure enabled, as well as to file/singleton collection items with the
|
|
1292
1293
|
* `file` path ending with `.{{locale}}.<extension>`, aiming to support [Zola’s multilingual
|
|
1293
1294
|
* sites](https://www.getzola.org/documentation/content/multilingual/).
|
|
1295
|
+
* @deprecated Use the `omit_default_locale_from_file_path` option instead.
|
|
1294
1296
|
*/
|
|
1295
1297
|
omit_default_locale_from_filename?: boolean;
|
|
1298
|
+
/**
|
|
1299
|
+
* Whether to exclude the default locale
|
|
1300
|
+
* from entry file paths. Default: `false`. This option applies to both entry collections and file
|
|
1301
|
+
* collections, where the path includes a `{{locale}}.` or `{{locale}}/` placeholder. It aims to
|
|
1302
|
+
* support [Zola’s multilingual sites](https://www.getzola.org/documentation/content/multilingual/).
|
|
1303
|
+
*/
|
|
1304
|
+
omit_default_locale_from_file_path?: boolean;
|
|
1305
|
+
/**
|
|
1306
|
+
* Whether to exclude the default locale
|
|
1307
|
+
* from preview URL paths. Default: `false`. This option helps to create cleaner URLs for the
|
|
1308
|
+
* default locale when generating preview links for multilingual content.
|
|
1309
|
+
*/
|
|
1310
|
+
omit_default_locale_from_preview_path?: boolean;
|
|
1296
1311
|
};
|
|
1297
1312
|
/**
|
|
1298
1313
|
* Single file in a file/singleton collection.
|