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

The 'Resource Type' doesn't show under the other language. #1366

Open
Autumn-Roy opened this issue Jul 18, 2023 · 1 comment
Open

The 'Resource Type' doesn't show under the other language. #1366

Autumn-Roy opened this issue Jul 18, 2023 · 1 comment
Labels
bug Something isn't working stale

Comments

@Autumn-Roy
Copy link

Package version (if known): 9.1.0

Describe the bug

I want to add a more language as default language in my site, like zh_CN; But when I change the invenio.cfg, the web page of upload new record show all 'resource type' as 'en', like below:
image

Steps to Reproduce

  1. Write the config file invenio.cfg, change the language:
    BABEL_DEFAULT_LOCALE = 'zh_CN'
    I18N_LANGUAGES = [
    ('en', _('English'))

    ('de', _('German')),

    ('tr', _('Turkish')),

]
2. Rerun the invenioRDM:
invenio-cli run -h 172.16.0.234 -p 8080 --celery-log-file logs/20230718.log

  1. I found the file invenio_rdm_records/fixtures/data/vocabularies/resource_types.yaml had a area seems to add the translation. So I added chinese in it like below, but it didn't work after rerunning:
    image

Expected behavior

The Resource Type can show chinese.

Screenshots (if applicable)

Additional context

@Autumn-Roy Autumn-Roy added the bug Something isn't working label Jul 18, 2023
@github-actions
Copy link
Contributor

This issue was automatically marked as stale.

@github-actions github-actions bot added the stale label Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant