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: translate collection labels #99

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

razonyang
Copy link
Member

@razonyang razonyang commented Jan 24, 2024

Let's say there is a collection:

params:
  decap_cms:
    collections:
      hello:
        label: Hello

To translate the Hello in other languages, such as Simplified Chinese (zh-hans), create i18n/zh-hans.toml and use cms_label_hello (lowercase) as the key.

[cms_label_hello]
other = "你好"

@razonyang razonyang merged commit 5ff085d into main Jan 24, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Jan 24, 2024
@razonyang razonyang deleted the feat-collection-label-i18n 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.

1 participant