Skip to content

Commit

Permalink
locales: generalize 'Activ
Browse files Browse the repository at this point in the history
e'
  • Loading branch information
kaloudis committed Jan 3, 2025
1 parent 516b802 commit 40de15d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/FeeBreakdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export default class FeeBreakdown extends React.Component<
keyValue={localeString('views.Channel.peerStatus')}
value={
isActive
? localeString('views.Channel.active')
? localeString('general.active')
: localeString('views.Channel.inactive')
}
/>
Expand Down
3 changes: 1 addition & 2 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"general.count": "Count",
"general.experimental": "Experimental",
"general.defaultNodeNickname": "My Lightning Node",
"general.active": "Active",
"restart.title": "Restart required",
"restart.msg": "ZEUS has to be restarted before the new configuration is applied.",
"restart.msg1": "Would you like to restart now?",
Expand Down Expand Up @@ -402,7 +403,6 @@
"views.Channel.fundedBy": "Funded by",
"views.Channel.unannounced": "Unannounced",
"views.Channel.status": "Status",
"views.Channel.active": "Active",
"views.Channel.inactive": "Inactive",
"views.Channel.private": "Private",
"views.Channel.totalReceived": "Total Received",
Expand Down Expand Up @@ -834,7 +834,6 @@
"views.Settings.POS.Product.noProductsDefined": "No products defined yet",
"views.Settings.POS.Product.sku": "SKU",
"views.Settings.POS.Product.price": "Price",
"views.Settings.POS.Product.active": "Active",
"views.Settings.POS.saveProduct": "Save product",
"views.Settings.POS.deleteProduct": "Delete product",
"views.Settings.POS.confirmDelete": "Confirm delete",
Expand Down
2 changes: 1 addition & 1 deletion views/Channels/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export default class ChannelView extends React.Component<
: closeHeight
? localeString('views.Channel.closed')
: isActive
? localeString('views.Channel.active')
? localeString('general.active')
: localeString('views.Channel.inactive')}
</Text>
{channelId && (
Expand Down
4 changes: 1 addition & 3 deletions views/POS/ProductDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,7 @@ export default class ProductDetails extends React.Component<
left: -10
}}
>
{localeString(
'views.Settings.POS.Product.active'
)}
{localeString('general.active')}
</ListItem.Title>
<View
style={{
Expand Down
2 changes: 1 addition & 1 deletion views/PayCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class PayCodeView extends React.Component<
>
{error_msg && <ErrorMessage message={error_msg} />}
<KeyValue
keyValue={localeString('views.Channel.active')}
keyValue={localeString('general.active')}
value={
active
? localeString('general.true')
Expand Down
2 changes: 1 addition & 1 deletion views/PayCodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class PayCodes extends React.Component<PayCodesProps, {}> {
}}
>
{item.active
? localeString('views.Channel.active')
? localeString('general.active')
: localeString('views.Channel.inactive')}
</Text>
</View>
Expand Down
5 changes: 4 additions & 1 deletion views/Settings/Wallets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import BackendUtils from '../../utils/BackendUtils';

import Add from '../../assets/images/SVG/Add.svg';
import DragDots from '../../assets/images/SVG/DragDots.svg';
import { locale } from 'moment';

Check failure on line 35 in views/Settings/Wallets.tsx

View workflow job for this annotation

GitHub Actions / tsc

'locale' is declared but its value is never read.

Check failure on line 35 in views/Settings/Wallets.tsx

View workflow job for this annotation

GitHub Actions / lint

'locale' is defined but never used

interface Props<T> extends Omit<FlatListProps<T>, 'renderItem'> {
data: T[];
Expand Down Expand Up @@ -213,7 +214,9 @@ export default class Nodes extends React.Component<NodesProps, NodesState> {
selectedNode === index ||
(!selectedNode && index === 0);
if (nodeActive) {
nodeSubtitle = 'Active | ';
nodeSubtitle = `${localeString(
'general.active'
)} | `;
}

nodeSubtitle +=
Expand Down

0 comments on commit 40de15d

Please sign in to comment.