Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-13535

Spring boot embedded engine 7.15.0 localization not loading locales

    • Icon: Bug Report Bug Report
    • Resolution: None
    • Icon: L3 - Default L3 - Default
    • None
    • 7.15.0
    • None
    • None

      Environment (Required on creation):

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      https://docs.camunda.org/manual/latest/webapps/tasklist/configuration/#localization

      https://github.com/camunda-consulting/code/tree/master/snippets/springboot-customized-webapps

      Steps to reproduce (Required on creation):

      Following camunda documentation and camunda consulting examples, localization with spring-boot embedded engine is not working and fallbacks to default(English) language.

      Observed Behavior (Required on creation):

      Following camunda documentation and camunda consulting examples, localization with spring-boot embedded engine is not working and fallbacks to default(English) language.

      Expected behavior (Required on creation):

      Picking up browser language and localize webapps accordingly.

      Root Cause (Required on prioritization):

      Solution Ideas (Optional):

      Hints (Optional):

      Camunda consulting example uses camunda version 7.12(which localization works with given configuration)
      But when I bump version to 7.15.0 localization json files under META-INF/resources/webjars/camunda/app/tasklist/locales not loaded to localStorage.

        This is the controller panel for Smart Panels app

            [CAM-13535] Spring boot embedded engine 7.15.0 localization not loading locales

            Hi semihunaldi,

            thanks for raising this issue. Please note that the consulting examples are used by our consulting team for their daily work and might be out of sync with the product cycle. Some of their examples are not maintained regularly.

            Since 7.15 the config.js has to look like this:

            export default {
            ...
            }
            

            instead of

            var camTasklistConf = {
            ...
            }
            

            This change is not reflected in the documentation.
            There is no reason why not both approaches should work. I have created CAM-13577 to fix this and adjust the documentation.

            I will close this ticket. Please feel free to reopen if the fix does not work for you.

            Best,
            Miklas

            Miklas Boskamp added a comment - Hi semihunaldi , thanks for raising this issue. Please note that the consulting examples are used by our consulting team for their daily work and might be out of sync with the product cycle. Some of their examples are not maintained regularly. Since 7.15 the config.js has to look like this: export default { ... } instead of var camTasklistConf = { ... } This change is not reflected in the documentation. There is no reason why not both approaches should work. I have created CAM-13577 to fix this and adjust the documentation. I will close this ticket. Please feel free to reopen if the fix does not work for you. Best, Miklas

            Hi @miklas.boskamp ,

            Using  "export default" works as expected.
            Thanks for your answer.

             

            semih ünaldı added a comment - Hi @ miklas.boskamp  , Using  "export default" works as expected. Thanks for your answer.  

              miklas.boskamp Miklas Boskamp
              semihunaldi semih ünaldı
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: