mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-13 02:14:31 +01:00
fix: minor time improvement
This commit is contained in:
parent
3a63f63a3c
commit
a929851662
2 changed files with 11 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
||||||
},
|
},
|
||||||
"latestCommitCard": {
|
"latestCommitCard": {
|
||||||
"loadingLabel": "Loading",
|
"loadingLabel": "Loading",
|
||||||
|
"timeagoLabel": "{time} ago",
|
||||||
"patcherLabel": "Patcher: ",
|
"patcherLabel": "Patcher: ",
|
||||||
"managerLabel": "Manager: ",
|
"managerLabel": "Manager: ",
|
||||||
"updateButton": "Update Manager"
|
"updateButton": "Update Manager"
|
||||||
|
|
|
@ -55,7 +55,11 @@ class _LatestCommitCardState extends State<LatestCommitCard> {
|
||||||
),
|
),
|
||||||
builder: (context, snapshot) => Text(
|
builder: (context, snapshot) => Text(
|
||||||
snapshot.data!.isNotEmpty
|
snapshot.data!.isNotEmpty
|
||||||
? snapshot.data!
|
? FlutterI18n.translate(
|
||||||
|
context,
|
||||||
|
'latestCommitCard.timeagoLabel',
|
||||||
|
translationParams: {'time': snapshot.data!},
|
||||||
|
)
|
||||||
: FlutterI18n.translate(
|
: FlutterI18n.translate(
|
||||||
context,
|
context,
|
||||||
'latestCommitCard.loadingLabel',
|
'latestCommitCard.loadingLabel',
|
||||||
|
@ -88,7 +92,11 @@ class _LatestCommitCardState extends State<LatestCommitCard> {
|
||||||
),
|
),
|
||||||
builder: (context, snapshot) => Text(
|
builder: (context, snapshot) => Text(
|
||||||
snapshot.data!.isNotEmpty
|
snapshot.data!.isNotEmpty
|
||||||
? snapshot.data!
|
? FlutterI18n.translate(
|
||||||
|
context,
|
||||||
|
'latestCommitCard.timeagoLabel',
|
||||||
|
translationParams: {'time': snapshot.data!},
|
||||||
|
)
|
||||||
: FlutterI18n.translate(
|
: FlutterI18n.translate(
|
||||||
context,
|
context,
|
||||||
'latestCommitCard.loadingLabel',
|
'latestCommitCard.loadingLabel',
|
||||||
|
|
Loading…
Reference in a new issue