Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Ancillaries: Renamed translation keys
Browse files Browse the repository at this point in the history
  • Loading branch information
vblazenka authored and tbergquist-godaddy committed Apr 26, 2019
1 parent ddda23a commit d3eec39
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 14 deletions.
8 changes: 5 additions & 3 deletions app/fastTrack/src/components/FastTrackBannerContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,19 @@ class FastTrackBannerContent extends React.Component<Props, State> {
<View style={style.header}>
<Icon name="deals" color={defaultTokens.colorIconSecondary} />
<Text style={style.title}>
<Translation id="fast_track.banner.title" />
<Translation id="mmb.fast_track.banner.title.bergamo.bergamo_stopover" />
</Text>
</View>
<Text style={style.description}>
<Translation id="fast_track.banner.description" />
<Translation id="mmb.fast_track.banner.description.bergamo.bergamo_stopover" />
</Text>
<Services />
<TextButton
type="primary"
onPress={this.onOpenModal}
title={<Translation id="fast_track.banner.show_qr_button" />}
title={
<Translation id="mmb.fast_track.banner.show_qr_button.bergamo.bergamo_stopover" />
}
/>
<FastTrackModal
isVisible={this.state.isModalVisible}
Expand Down
2 changes: 1 addition & 1 deletion app/fastTrack/src/components/FastTrackModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FastTrackModal extends React.Component<Props> {
onPress={props.onCloseModal}
type="secondary"
title={
<Translation id="fast_track.banner.modal.close_modal_button" />
<Translation id="mmb.fast_track.banner.close_modal_button.bergamo.bergamo_stopover" />
}
/>
</View>
Expand Down
8 changes: 5 additions & 3 deletions app/fastTrack/src/components/Services.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Props = {|
const Services = ({ services }: Props) => (
<React.Fragment>
<Text style={style.title}>
<Translation id="fast_track.banner.services_label" />
<Translation id="mmb.fast_track.banner.services_label.bergamo.bergamo_stopover" />
</Text>
<View style={style.list}>
{services.map((service: Service) => (
Expand All @@ -39,12 +39,14 @@ Services.defaultProps = {
{
id: 1,
icon: 'walk',
translation: 'fast_track.banner.services_security_route',
translation:
'mmb.fast_track.banner.services_security_route.bergamo.bergamo_stopover',
},
{
id: 2,
icon: 'baggage-checked',
translation: 'fast_track.banner.services_handling_assistance',
translation:
'mmb.fast_track.banner.services_handling_assistance.bergamo.bergamo_stopover',
},
],
};
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 12 additions & 7 deletions packages/localization/src/vocabularies/FastTrack.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
// @flow strict

const FastTrackVocabulary = {
'fast_track.banner.title': 'Milan Bergamo Stopover Bundle',
'fast_track.banner.description':
'mmb.fast_track.banner.title.bergamo.bergamo_stopover':
'Milan Bergamo Stopover Bundle',
'mmb.fast_track.banner.description.bergamo.bergamo_stopover':
'VIP treatment is waiting for you at Milan Bergamo Airport with Fast Track and baggage assistance.',
'fast_track.banner.services_label': 'Services included',
'fast_track.banner.services_security_route': 'Fast track security route',
'fast_track.banner.services_handling_assistance':
'mmb.fast_track.banner.services_label.bergamo.bergamo_stopover':
'Services included',
'mmb.fast_track.banner.services_security_route.bergamo.bergamo_stopover':
'Fast track security route',
'mmb.fast_track.banner.services_handling_assistance.bergamo.bergamo_stopover':
'Baggage handling assistance',
'fast_track.banner.show_qr_button': 'Show QR Code',
'fast_track.banner.modal.close_modal_button': 'Close modal',
'mmb.fast_track.banner.show_qr_button.bergamo.bergamo_stopover':
'Show QR Code',
'mmb.fast_track.banner.close_modal_button.bergamo.bergamo_stopover':
'Close modal',
};

export default FastTrackVocabulary;

0 comments on commit d3eec39

Please sign in to comment.