feat: add translation support (#2870)
* feat: add translation support * test(cypress): fix locale import * docs: add locale documentation * feat: add german translation (#2877) * fix: locales package version, register all locales in netlify-cms
This commit is contained in:
20
packages/netlify-cms-locales/README.md
Normal file
20
packages/netlify-cms-locales/README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# Netlify CMS Locales
|
||||
|
||||
## Default translations for Netlify CMS
|
||||
|
||||
The English translation is loaded by default.
|
||||
|
||||
To register another locale you can use the following code:
|
||||
|
||||
```js
|
||||
import CMS from 'netlify-cms-app';
|
||||
import { de } from 'netlify-cms-locales';
|
||||
|
||||
CMS.registerLocale('de', de);
|
||||
```
|
||||
|
||||
> When importing `netlify-cms` all locales are registered by default.
|
||||
|
||||
Make sure the specific locale exists in the package - if not, we will happily accept a pull request for it.
|
||||
|
||||
The configured locale will be merge into the english one so don't worry about missing some phrases.
|
Reference in New Issue
Block a user