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

Create a label service to translate language abbreviations to full language descriptions #88

Open
UcDust opened this issue Aug 13, 2024 · 1 comment
Assignees

Comments

@UcDust
Copy link
Contributor

UcDust commented Aug 13, 2024

In DAMS, we need to translate abbreviated language codes (ie fr) that collections are available in to the full language description (ie French). This issue has some details.

This registry can be used to make the translation. This is also the registry the linked data platform uses.

@UcDust
Copy link
Contributor Author

UcDust commented Aug 13, 2024

@EricNebeker
This issue will be for some work @jrmerz is helping with. For the collections, you'll want to define something like:

"schema:inLanguage": [
    {"@id": "https://www.iana.org/assignments/language-subtag-registry#fr"},
    {"@id": "https://www.iana.org/assignments/language-subtag-registry#la"}
  ]
  
// or
  
"schema:inLanguage": {"@id": "https://www.iana.org/assignments/language-subtag-registry#fr"}

If collections are imported this way, the label service will create a name attribute (in addition to @id) and assign it the full description that's matched in the registry.

jrmerz added a commit that referenced this issue Aug 26, 2024
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

No branches or pull requests

2 participants