Skip to content

Commit

Permalink
localized button text
Browse files Browse the repository at this point in the history
  • Loading branch information
olaven committed Jul 2, 2020
1 parent 36ec80f commit b19b8e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/tiny/buttons.tsx
Expand Up @@ -42,10 +42,10 @@ const ListButton = (href: string, text: string) => <Box mx={[0, 1, 2]}>
</Box>;

export const ToAdmin = ({ id }) =>
ListButton(`/${id}/admin`, "Mine tilbakemeldinger" /* "trending_up" */);
ListButton(`/${id}/admin`, text.buttons.toAdmin /* "trending_up" */);

export const ToQR = ({ id }) =>
ListButton(`/${id}/code`, "QR-kode" /* "qr_code" */);
ListButton(`/${id}/code`, text.buttons.toQR /* "qr_code" */);

export const ToPage = ({ id }) =>
ListButton(`/${id}`, "Tilbakemeldingsside" /* "reply" */);
ListButton(`/${id}`, text.buttons.toPage /* "reply" */);
10 changes: 8 additions & 2 deletions src/text.ts
Expand Up @@ -52,12 +52,18 @@ export const buttons = strings({
en: {
logout: "Log out",
login: "Log in",
getStarted: "Get started!"
getStarted: "Get started!",
toAdmin: "Received feedback",
toQR: "My QR-code",
toPage: "My feeedback page"
},
no: {
logout: "Logg ut",
login: "Logg inn",
getStarted: "Kom i gang!"
getStarted: "Kom i gang!",
toAdmin: "Mottatte tilbakemeldinger",
toQR: "Min QR-kode",
toPage: "Min tilbakemeldingsside"
}
});

Expand Down

0 comments on commit b19b8e2

Please sign in to comment.