Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fill i18n fields if enabled #49

Merged
merged 1 commit into from
Nov 26, 2023
Merged

feat: fill i18n fields if enabled #49

merged 1 commit into from
Nov 26, 2023

Conversation

razonyang
Copy link
Member

@razonyang razonyang commented Nov 26, 2023

Closes #48

This PR fills i18n.locales and i18n.default_locale if the i18n enabled to simplify configuration setup, with this, users don't need to specify those params.

params:
  decap_cms
      i18n:
        structure: multiple_files
        # locales: [en, zh-hans] # optional, will be resolved automatically.
        # default_locale: en # optional, will be resolved automatically.

@razonyang razonyang merged commit e357ef9 into main Nov 26, 2023
2 checks passed
@github-actions github-actions bot mentioned this pull request Nov 26, 2023
@razonyang razonyang deleted the feat-i18n-params branch January 27, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fill up the i18n.locales and i18n.default_locale if i18n is enabled
1 participant