remsfal / remsfal-frontend

MIT License
4 stars 43 forks source link

Implement translation of member role into project selection page #140

Open FelixSiegfriedRiedel opened 4 months ago

FelixSiegfriedRiedel commented 4 months ago

Currently the member Role is displayed in english. A german translation needs to be added.

The code below shows how it was done using the project store.

const projects = computed(() => {
    const roles = {
      PROPRIETOR: "Eigentuemer",
      MANAGER: "Verwalter",
      LESSOR: "Vermieter"
    };

    return projectStore.projectList.map(project => ({
      ...project,
      memberGerman: roles[project.memberRole]
    }));
  });

Now as lazy loading was used in #121 it needs to be reimplemented.