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

Commit

Permalink
Wrap theme in translations (related to #500)
Browse files Browse the repository at this point in the history
  • Loading branch information
Crecket committed Mar 7, 2019
1 parent c13700a commit cd2248c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/react/Locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"Credit scheme identifier": "Credit scheme identifier",
"Daily": "Daily",
"Daily limit": "Daily limit",
"Dark theme": "Dark theme",
"Dashboard": "Dashboard",
"Data management": "Data management",
"Data options": "Data options",
Expand Down Expand Up @@ -277,6 +278,7 @@
"It is not possible to send outgoing payments without draft mode when using a OAuth API key": "It is not possible to send outgoing payments without draft mode when using a OAuth API key",
"Less options": "Less options",
"Less than": "Less than",
"Light theme": "Light theme",
"Limit amount monthly": "Limit amount monthly",
"Load default categories": "Load default categories",
"Load more events": "Load more events",
Expand Down Expand Up @@ -652,7 +654,7 @@
"day": "day",
"days": "days",
"description": "description",
"direct debit": "direct debit",
"direct debit": "direct debit",
"events": "events",
"every": "every",
"expired": "expired",
Expand Down
4 changes: 2 additions & 2 deletions src/react/Pages/Settings/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class Settings extends React.Component {
style={styles.selectField}
>
{Object.keys(this.props.themeList).map(themeKey => (
<MenuItem value={themeKey}>{humanReadableThemes[themeKey]}</MenuItem>
<MenuItem value={themeKey}>{t(humanReadableThemes[themeKey])}</MenuItem>
))}
</Select>
</FormControl>
Expand Down Expand Up @@ -598,7 +598,7 @@ class Settings extends React.Component {

<Grid item xs={12} sm={4}>
<Button variant="outlined" style={styles.button} onClick={this.props.bunqMeTabsClear}>
{t("bunq.me Tabs")} {bunqMeTabsCount}
{t("bunqme Tabs")} {bunqMeTabsCount}
</Button>
</Grid>

Expand Down

0 comments on commit cd2248c

Please sign in to comment.