Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 93ff495

Browse files
authored
Changing localizations (#106)
1 parent bbb138e commit 93ff495

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed

flutter_nps/lib/capture/view/capture_page.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ class CaptureView extends StatelessWidget {
3636
(CaptureCubit cubit) => cubit.state.chipIndexes,
3737
);
3838
final chips = [
39-
context.l10n.mediumText,
40-
context.l10n.mediumText,
41-
context.l10n.mediumText,
42-
context.l10n.veryLongText,
43-
context.l10n.mediumText,
44-
context.l10n.shortText,
45-
context.l10n.veryLongText,
39+
context.l10n.bugFreeResponse,
40+
context.l10n.simpleResponse,
41+
context.l10n.funResponse,
42+
context.l10n.quickResponse,
43+
context.l10n.greatUIResponse,
44+
context.l10n.responsiveResponse,
45+
context.l10n.friendlyResponse,
4646
];
4747
return Stack(
4848
children: [

flutter_nps/lib/l10n/arb/app_en.arb

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,32 @@
2828
"@feedbackSubmittedMessage": {
2929
"description": "Message displayed on submit of feedback"
3030
},
31-
"shortText": "Short",
32-
"@shortText": {
33-
"description": "Text displaying short"
31+
"quickResponse": "Quick",
32+
"@quickResponse": {
33+
"description": "Quick chip"
3434
},
35-
"mediumText": "Medium",
36-
"@mediumText": {
37-
"description": "Text displaying medium"
35+
"greatUIResponse": "Great UI",
36+
"@greatUIResponse": {
37+
"description": "Great UI chip"
3838
},
39-
"veryLongText": "Very very long text",
40-
"@veryLongText": {
41-
"description": "Text displaying Very very long text"
39+
"friendlyResponse": "Friendly",
40+
"@friendlyResponse": {
41+
"description": "Friendly chip"
42+
},
43+
"funResponse": "Fun!",
44+
"@funResponse": {
45+
"description": "Fun chip"
46+
},
47+
"responsiveResponse": "Responsive",
48+
"@responsiveResponse": {
49+
"description": "Responsive chip"
50+
},
51+
"simpleResponse": "Simple",
52+
"@simpleResponse": {
53+
"description": "Simple chip"
54+
},
55+
"bugFreeResponse": "Bug-Free",
56+
"@bugFreeResponse": {
57+
"description": "Bug-free chip"
4258
}
4359
}

0 commit comments

Comments
 (0)