<app-localize-behavior> hardcodes how translations are extracted from the resource file.
This constraint causes various limitations raised by users:
As the translation file format is proprietary to <app-localize-behavior>, it requires a build step to transform translation files provided by translation tools.
For example, Transifex offers a JSON Key/Value format that is very similar to the <app-localize-behavior> format (https://docs.transifex.com/formats/json) - except that it doesn't have the language node. Today, this requires a build step to transform the Transifex JSON files into a <app-localize-behavior> resource file.
Allowing users to provide their own function to extract translations from the resource file would make <app-localize-behavior> suitable for a broader usage.
<app-localize-behavior>hardcodes how translations are extracted from the resource file.This constraint causes various limitations raised by users:
As the translation file format is proprietary to
<app-localize-behavior>, it requires a build step to transform translation files provided by translation tools.For example, Transifex offers a JSON Key/Value format that is very similar to the
<app-localize-behavior>format (https://docs.transifex.com/formats/json) - except that it doesn't have the language node. Today, this requires a build step to transform the Transifex JSON files into a<app-localize-behavior>resource file.Allowing users to provide their own function to extract translations from the resource file would make
<app-localize-behavior>suitable for a broader usage.