@sveltia/cms 0.40.4 → 0.41.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 +8 -5
- package/dist/sveltia-cms.js +406 -404
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +433 -431
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
152
152
|
- Provides a smoother user experience in the Content Editor:
|
|
153
153
|
- A local backup of an entry draft is automatically created without interruption by a confirmation dialog, which annoys users and can cause a page navigation problem if dismissed[^106]. The backup can then be reliably restored without unexpected overwriting[^85].
|
|
154
154
|
- Click once (the Save button) instead of twice (Publish > Publish now) to save an entry.
|
|
155
|
-
- The editor closes automatically when an entry is saved. This behaviour can be changed in
|
|
155
|
+
- The editor closes automatically when an entry is saved. This behaviour can be changed in the application settings.
|
|
156
156
|
- Uploading files can be done with drag and drop[^20].
|
|
157
157
|
- You can upload multiple files at once to the Asset Library[^5].
|
|
158
158
|
- You can delete multiple entries and assets at once.
|
|
@@ -217,6 +217,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
217
217
|
- Language labels appear in human-readable display names instead of ISO 639 language codes because it’s not easy for everyone to recognize `DE` as German, `NL` as Dutch, `ZH` as Chinese, and so on.
|
|
218
218
|
- Content editing
|
|
219
219
|
- [Integrates DeepL](#using-deepl-to-translate-entry-fields) to allow translation of text fields from another locale with one click. More translation services will be added in the future.
|
|
220
|
+
- The Content Editor supports [RTL scripts](https://en.wikipedia.org/wiki/Right-to-left_script) such as Arabic, Hebrew and Persian[^146].
|
|
220
221
|
- You can [disable non-default locale content](#disabling-non-default-locale-content)[^15].
|
|
221
222
|
- Boolean, DateTime, List and Number fields in the entry preview are displayed in a localized format.
|
|
222
223
|
- Boolean fields are updated in real time between locales like other widgets to avoid confusion[^35].
|
|
@@ -385,7 +386,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
385
386
|
|
|
386
387
|
### Better localization
|
|
387
388
|
|
|
388
|
-
- The application UI locale is automatically selected based on the preferred language set with the browser[^132]. Users can also change the locale in the
|
|
389
|
+
- The application UI locale is automatically selected based on the preferred language set with the browser[^132]. Users can also change the locale in the application settings. Therefore, the `locale` configuration option is ignored and `CMS.registerLocale()` is not required.
|
|
389
390
|
- The List widget’s `label` and `label_singular` are not converted to lowercase, which is especially problematic in German, where all nouns are capitalized[^98].
|
|
390
391
|
- Long menu item labels, especially in non-English locales, don’t overflow the dropdown container[^117].
|
|
391
392
|
- We’ll soon be migrating from [svelte-i18n](https://github.com/kaisermann/svelte-i18n) to the [Fluent localization system](https://projectfluent.org/) for natural-sounding translations in every locale.
|
|
@@ -619,7 +620,7 @@ In Sveltia CMS, those per-collection media folders are displayed prominently for
|
|
|
619
620
|
|
|
620
621
|
### Using DeepL to translate entry fields
|
|
621
622
|
|
|
622
|
-
Sveltia CMS comes with a handy DeepL integration so that you can translate any text field from another locale without leaving the
|
|
623
|
+
Sveltia CMS comes with a handy DeepL integration so that you can translate any text field from another locale without leaving the Content Editor. To enable the high quality, AI-powered, quick translation feature:
|
|
623
624
|
|
|
624
625
|
1. Update your configuration file to enable the [i18n support](https://decapcms.org/docs/i18n/) with multiple locales.
|
|
625
626
|
1. Sign up for [DeepL API](https://www.deepl.com/pro-api/) and copy your Authentication Key from DeepL’s Account page.
|
|
@@ -697,7 +698,7 @@ i18n:
|
|
|
697
698
|
|
|
698
699
|
### Disabling non-default locale content
|
|
699
700
|
|
|
700
|
-
You can disable output of content in selected non-default locales by adding the `save_all_locales` property to the top-level or per-collection `i18n` configuration. Then you’ll find “Disable (locale name)” in the three-dot menu in the top right corner of the
|
|
701
|
+
You can disable output of content in selected non-default locales by adding the `save_all_locales` property to the top-level or per-collection `i18n` configuration. Then you’ll find “Disable (locale name)” in the three-dot menu in the top right corner of the Content Editor. This is useful if the translation isn’t ready yet, but you want to publish the default locale content first.
|
|
701
702
|
|
|
702
703
|
With the following configuration, you can disable the French and/or German translation while writing in English.
|
|
703
704
|
|
|
@@ -739,7 +740,7 @@ With Sveltia CMS, you can disable automatic deployments by default and manually
|
|
|
739
740
|
```
|
|
740
741
|
1. Commit and deploy the change to the config file and reload the CMS.
|
|
741
742
|
1. Now, whenever you save an entry or asset, `[skip ci]` is automatically added to each commit message. However, deletions are always committed without the prefix to avoid unexpected data retention on your site.
|
|
742
|
-
1. If you want to deploy a new or updated entry, as well as any other unpublished entries and assets, click an arrow next to the Save button in the
|
|
743
|
+
1. If you want to deploy a new or updated entry, as well as any other unpublished entries and assets, click an arrow next to the Save button in the Content Editor, then select **Save and Publish**. This will trigger CI/CD by omitting `[skip ci]`.
|
|
743
744
|
|
|
744
745
|
If you set `automatic_deployments` to `true`, the behaviour is reversed. CI/CD will be triggered by default, while you have an option to **Save without Publishing** that adds `[skip ci]` only to the associated commit.
|
|
745
746
|
|
|
@@ -1197,3 +1198,5 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
1197
1198
|
[^144]: Netlify/Decap CMS [#3284](https://github.com/decaporg/decap-cms/issues/3284)
|
|
1198
1199
|
|
|
1199
1200
|
[^145]: Netlify/Decap CMS [#4733](https://github.com/decaporg/decap-cms/issues/4733)
|
|
1201
|
+
|
|
1202
|
+
[^146]: Netlify/Decap CMS [#2524](https://github.com/decaporg/decap-cms/issues/2524)
|