Replies: 1 comment
-
Exactly: This is important for readability, because Country Code (uppercase) and Language Code (lowercase) can be combined for local variants of a language, e.g. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I came from #275 and thanks to my IDE noticed a "discrepancy" in the standard.
As for the key
intendedAudience.countriesit forces uppercase letters/ISO language codes (in the latest standard apparently; cannot find that change in the release docs though), as https://editor.opencode.de/ still gave me lowercase letters):This seems to be compliant as per https://yml.publiccode.tools/schema.core.html#key-intendedaudience-countries:
(which BTW, the example in https://guide.opencode.de/assets/code/publiccode.yml still does explicitly wrong)
However, the key
localisation.availableLanguagesapparently uses lowercase letters?https://yml.publiccode.tools/schema.core.html#key-localisation-availablelanguages
I know countries and languages are something different and the last one follow a different standard, but anyway, this was very confusing for me.
Beta Was this translation helpful? Give feedback.
All reactions