-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(networknodes): adapt to lingui i18n
- Loading branch information
1 parent
6649c96
commit 26e957e
Showing
10 changed files
with
53 additions
and
43 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
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,8 +1,8 @@ | ||
import { h } from 'preact'; | ||
import I18n from 'i18n-js'; | ||
import { Trans } from '@lingui/macro'; | ||
|
||
const Menu = () => ( | ||
<a href={'#/deletenodes'}>{I18n.t('Delete Nodes')}</a> | ||
<a href={'#/deletenodes'}><Trans>Delete Nodes</Trans></a> | ||
); | ||
|
||
export default Menu; |
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,8 +1,8 @@ | ||
import { h } from 'preact'; | ||
import I18n from 'i18n-js'; | ||
import { Trans } from '@lingui/macro'; | ||
|
||
const Menu = () => ( | ||
<a href={'#/networknodes'}>{I18n.t('Network Nodes')}</a> | ||
<a href={'#/networknodes'}><Trans>Network Nodes</Trans></a> | ||
); | ||
|
||
export default Menu; |
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
6 changes: 3 additions & 3 deletions
6
plugins/lime-plugin-reachable-nodes/src/reachableNodesMenu.js
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,7 +1,7 @@ | ||
import { h } from 'preact'; | ||
|
||
import I18n from 'i18n-js'; | ||
import { Trans } from '@lingui/macro'; | ||
|
||
export const ReachableNodesMenu = () => ( | ||
<a href={'#/reachablenodes'}>{I18n.t('Reachable Nodes')}</a> | ||
); | ||
<a href={'#/reachablenodes'}><Trans>Reachable Nodes</Trans></a> | ||
); |
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,8 +1,8 @@ | ||
import { h } from 'preact'; | ||
import I18n from 'i18n-js'; | ||
import { Trans } from '@lingui/macro'; | ||
|
||
const Menu = () => ( | ||
<a href={'#/upgradednodes'}>{I18n.t('Upgraded Nodes')}</a> | ||
<a href={'#/upgradednodes'}><Trans>Upgraded Nodes</Trans></a> | ||
); | ||
|
||
export default Menu; |
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