This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(i18n): translate whole profile page
- Loading branch information
1 parent
ee1a3bb
commit 28cc200
Showing
8 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import * as React from 'react' | ||
|
||
import { Profile } from '@front/features/profile' | ||
import { pageWithTranslation, Namespace } from '@front/domain/i18n' | ||
|
||
export default class ProfilePage extends React.Component { | ||
class ProfilePage extends React.Component { | ||
public static isSecure = true | ||
|
||
public render() { | ||
return <Profile /> | ||
} | ||
} | ||
|
||
export default pageWithTranslation([Namespace.Profile, Namespace.Currency])( | ||
ProfilePage, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ export enum Namespace { | |
History = 'history', | ||
Common = 'common', | ||
Months = 'months', | ||
Profile = 'profile', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { Currency } from '@shared/enum/Currency' | ||
|
||
export const translatedCurrency = (currency: Currency): string => | ||
`currency:${currency}` | ||
export const translatedCurrency = (t: (key: string) => string) => ( | ||
currency: Currency, | ||
): string => t(`currency:${currency}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"main": { | ||
"title": "Профиль", | ||
"soon": "В разработке...", | ||
"sign-out": "Выйти" | ||
}, | ||
"settings": { | ||
"title": "Настройки", | ||
"preferred-currency": "Валюта по умолчанию" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.