Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set org specific examples for line numbers to filter on #238

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions src/translations/pages/assistant.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { translation as _ } from '@atb/translations/commons';
import { orgSpecificTranslations } from '../utils';

export const Assistant = {
const AssistantInternal = {
title: _('Planlegg reisen', 'Plan travel', 'Planlegg reisa'),
homeLink: (name: string) =>
_(`Tilbake til ${name}`, `Back to ${name}`, `Tilbake til ${name}`),
Expand Down Expand Up @@ -49,11 +50,7 @@ export const Assistant = {
'Eg reiser med linje',
),
placeholder: _('linjenummer', 'line number', 'linjenummer'),
example: _(
'Eksempel: 901, 800',
'Example: 901, 800',
'Eksempel: 901, 800',
),
example: _('Eksempel: 2, 10', 'Example: 2, 10', 'Eksempel: 2, 10'),
},
buttons: {
find: {
Expand Down Expand Up @@ -407,3 +404,28 @@ export const Assistant = {
},
},
};

export const Assistant = orgSpecificTranslations(AssistantInternal, {
nfk: {
search: {
lineFilter: {
example: _(
'Eksempel: 100, 200, 300',
'Example: 100, 200, 300',
'Eksempel: 100, 200, 300',
),
},
},
},
fram: {
search: {
lineFilter: {
example: _(
'Eksempel: 905, 902, 901',
'Example: 905, 902, 901',
'Eksempel: 905, 902, 901',
),
},
},
},
});
Loading