Open papjul opened 5 months ago
Hi @papjul, thanks for the request!
This would indeed be a nice feature. I left it out in the initial feature set to avoid the additional database complexity (of either managing the extra tables or dealing with JSONB shenanigans), but it might be time for an extension now that there seems to be real-world demand :)
Don't worry, there has not been any real-world demand so far to my knowledge! I just happen to run a multilingual weather app, and found while working on CAP files that Germany had many translations, so why not handle them :)
From what I can see, CAP alerts are emitted in many languages. I can see French, Spanish, Arabic, Russian, Turkish, Polish, but this may not be a fixed list for all alerts.
From an app parsing point of view, it would be more flexible/convenient for these to be provided this way:
For retrocompatibility, you may continue to provide
headlineEn
andheadlineDe
, or bump a new version of the API endpoint.Thanks!