Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2084

Allow use of i18n in connectors' metadata for custom labels

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • GreenHopper Ranking:
      0|i2d2gr:
    • 9223372036854775807
    • TDP
    • Small

    Description

      In data preparation, we are using tacokit processors that includes some metadata that need to be translated. At the moment, there is no mean to handle localization of these metadata by i18n tacokit mechanism.

      We want to be able to translate all keys declared as metadata.

      @Function(
      description = "Delete this row",
      categories = { "Dataprep/Data cleansing" },
      scopes = { Function.Scope.LINE },
      terms = {})
      public class DeleteRowProcessor extends FunctionProcessor
      

      It is currently filled in a `FunctionEnricher` as metadata properties

      public class FunctionEnricher implements ComponentMetadataEnricher {
      ...
      metas.put("processor::type", "function");
                      metas.put(FUNCTION_META_PREFIX + "description", function.description());
                      metas.put(FUNCTION_META_PREFIX + "categories", String.join(DELIMITER, function.categories()));
                      metas.put(FUNCTION_META_PREFIX + "scopes",
                              Arrays.stream(function.scopes()).map(Scope::name).collect(Collectors.joining(DELIMITER)));
                      metas.put(FUNCTION_META_PREFIX + "terms", String.join(DELIMITER, function.terms()));
      

      Attachments

        Issue Links

          Activity

            People

              emmanuel_g emmanuel gallois
              eguillossou Erwan Guillossou
              emmanuel gallois, Fabien Desiles
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: