Currently, like it is mentioned in this review comment https://github.com/camunda/camunda-optimize/pull/5957#discussion_r1117345803 whenever someone evaluates a report or fetches a dashboard, the localisation if being read from a file. This means that everytime Optimizes does the evaluation has to open that file and read the localization which can be an expensive operation.
We should therefore implement a cache so that we read the localization file only once.
ATs:
- The localization file gets opened only once
- There is a cache implemented which stores the file content and where we further read the file from
Testing Notes:
- Optimize works as expected in different supported locales
- The fallback locale is used when the current browser locale doesn't have a saved localisation file