From ccc1f873f7711de9a3f06df1f8f5657a508fa254 Mon Sep 17 00:00:00 2001 From: Rahul Dev Garg <34365102+rahuldevgarg@users.noreply.github.com> Date: Fri, 28 Apr 2023 15:05:45 +0530 Subject: [PATCH] added localization --- .../lib/screeens/GpwscDetails/GpwscRateCard.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/mgramseva/lib/screeens/GpwscDetails/GpwscRateCard.dart b/frontend/mgramseva/lib/screeens/GpwscDetails/GpwscRateCard.dart index 5a226ecfa..bbe5bf987 100644 --- a/frontend/mgramseva/lib/screeens/GpwscDetails/GpwscRateCard.dart +++ b/frontend/mgramseva/lib/screeens/GpwscDetails/GpwscRateCard.dart @@ -87,9 +87,11 @@ class GpwscRateCard extends StatelessWidget { rows.add(DataRow(cells: [ DataCell(Text("${ApplicationLocalizations.of(context) .translate(i18.common.WATER_CHARGES)}-10101")), - DataCell(Text("${e.calculationAttribute}")), + DataCell(Text("${ApplicationLocalizations.of(context) + .translate("${e.calculationAttribute}")}")), DataCell(Text("${slabs.from}-${slabs.to}")), - DataCell(Text("${e.buildingType}")), + DataCell(Text("${ApplicationLocalizations.of(context) + .translate("${e.buildingType}")}")), DataCell(Text("${slabs.charge}")) ]))) }); @@ -180,8 +182,10 @@ class GpwscRateCard extends StatelessWidget { .map((slab) => DataRow(cells: [ DataCell(Text("${ApplicationLocalizations.of(context) .translate(i18.common.WATER_CHARGES)}-10101")), - DataCell(Text("${slab.calculationAttribute}")), - DataCell(Text("${slab.buildingType}")), + DataCell(Text("${ApplicationLocalizations.of(context) + .translate("${slab.calculationAttribute}")}")), + DataCell(Text("${ApplicationLocalizations.of(context) + .translate("${slab.buildingType}")}")), DataCell(Text("${slab.minimumCharge}")) ])) .toList()),