According to the docs, both <translation/> and <languages/> are optional tags, but storefronts like gnome-software try to use them together, as they are somewhat dependent. If a <languages/> tag is present but no <translation/> tag is found, its assumed to be English, ignores <languages> and gnome-software for example shows a banner with "This app will be shown in US English", which could be misleading if your app reports your own language with<lang> as supported:
Right now, AppStream's <translation/> types are rather limited. Although gettext is largely used, there are a lot of other choises depending on which programming language or tooling you use. Altough Appstream could theorically integrate with the more popular formats, there will always be edge/niche cases. i.e: a small project using a self-developed/custom i18n library.
I think giving apps the ability to self-report its translation status on its metadata would be helpful for both apps and store frontends (like gnome-software). This could be implemented adding a new value to </translation>'s type attribute or could be clarified as part of the spec that both tags are not dependent on each other.
According to the docs, both
<translation/>and<languages/>are optional tags, but storefronts likegnome-softwaretry to use them together, as they are somewhat dependent. If a<languages/>tag is present but no<translation/>tag is found, its assumed to be English, ignores<languages>andgnome-softwarefor example shows a banner with "This app will be shown in US English", which could be misleading if your app reports your own language with<lang>as supported:Right now, AppStream's
<translation/>types are rather limited. Althoughgettextis largely used, there are a lot of other choises depending on which programming language or tooling you use. Altough Appstream could theorically integrate with the more popular formats, there will always be edge/niche cases. i.e: a small project using a self-developed/custom i18n library.I think giving apps the ability to self-report its translation status on its metadata would be helpful for both apps and store frontends (like
gnome-software). This could be implemented adding a new value to</translation>'stypeattribute or could be clarified as part of the spec that both tags are not dependent on each other.