Merge pull request '+ missing localizatoin +permissions fix' (#13) from recipients-#12 into main
Some checks failed
ci/woodpecker/push/fx_ingestor Pipeline is pending
ci/woodpecker/push/fx_oracle Pipeline is pending
ci/woodpecker/push/ledger Pipeline is pending
ci/woodpecker/push/mntx_gateway Pipeline is pending
ci/woodpecker/push/nats Pipeline is pending
ci/woodpecker/push/notification Pipeline is pending
ci/woodpecker/push/payments_orchestrator Pipeline is pending
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/frontend Pipeline failed
ci/woodpecker/push/chain_gateway Pipeline failed
Some checks failed
ci/woodpecker/push/fx_ingestor Pipeline is pending
ci/woodpecker/push/fx_oracle Pipeline is pending
ci/woodpecker/push/ledger Pipeline is pending
ci/woodpecker/push/mntx_gateway Pipeline is pending
ci/woodpecker/push/nats Pipeline is pending
ci/woodpecker/push/notification Pipeline is pending
ci/woodpecker/push/payments_orchestrator Pipeline is pending
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/frontend Pipeline failed
ci/woodpecker/push/chain_gateway Pipeline failed
Reviewed-on: #13
This commit was merged in pull request #13.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
arb-dir: lib/l10n
|
||||
template-arb-file: ps_en.arb
|
||||
template-arb-file: en.arb
|
||||
output-dir: lib/generated/i18n
|
||||
output-localization-file: ps_localizations.dart
|
||||
output-class: PSLocalizations
|
||||
|
||||
23
frontend/pshared/lib/l10n/ru.arb
Normal file
23
frontend/pshared/lib/l10n/ru.arb
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"@@locale": "ru",
|
||||
|
||||
"statusReady": "Готово",
|
||||
"statusRegistered": "Зарегистрирован",
|
||||
"statusNotRegistered": "Не зарегистрирован",
|
||||
"typeInternal": "Внутренний",
|
||||
"typeExternal": "Внешний",
|
||||
"operationStatusProcessing": "Обработка",
|
||||
"@operationStatusProcessing": {
|
||||
"description": "Label for the “processing” operation status"
|
||||
},
|
||||
|
||||
"operationStatusSuccess": "Успех",
|
||||
"@operationStatusSuccess": {
|
||||
"description": "Label for the “success” operation status"
|
||||
},
|
||||
|
||||
"operationStatusError": "Ошибка",
|
||||
"@operationStatusError": {
|
||||
"description": "Label for the “error” operation status"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
import 'package:pshared/generated/i18n/ps_localizations.dart';
|
||||
|
||||
|
||||
enum OperationStatus {
|
||||
processing,
|
||||
success,
|
||||
|
||||
@@ -8,8 +8,7 @@ enum RecipientType { internal, external }
|
||||
|
||||
extension RecipientTypeExtension on RecipientType {
|
||||
/// Localized label – no opaque abbreviations.
|
||||
String label(BuildContext context) =>
|
||||
this == RecipientType.internal
|
||||
? PSLocalizations.of(context)!.typeInternal
|
||||
: PSLocalizations.of(context)!.typeExternal;
|
||||
String label(BuildContext context) => this == RecipientType.internal
|
||||
? PSLocalizations.of(context)!.typeInternal
|
||||
: PSLocalizations.of(context)!.typeExternal;
|
||||
}
|
||||
|
||||
@@ -83,6 +83,10 @@ enum ResourceType {
|
||||
@JsonValue('policies')
|
||||
policies,
|
||||
|
||||
/// Represents recipents access policies
|
||||
@JsonValue('recipients')
|
||||
recipients,
|
||||
|
||||
/// Represents refresh tokens for authentication
|
||||
@JsonValue('refresh_tokens')
|
||||
refreshTokens,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: pshared
|
||||
description: A starting point for Dart libraries or applications.
|
||||
description: Shared components inside Sendico frontends.
|
||||
version: 1.0.0
|
||||
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user