Replies: 2 comments 2 replies
-
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.
-
Your IDE uses the official, up to date JSON schema to provide you an approximate guidance on the syntax, but it can't express "in this field this format is deprecated, you should use that other format", so it just defines the non deprecated format.
It's the second to last item in the release notes:
Please open the relevant opencode editor's issues to their repo.
|
Beta Was this translation helpful? Give feedback.
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