@@ -26,8 +26,8 @@ public function testParsesListedLocaleTranslations(): void
26
26
$ this ->assertSame (
27
27
[
28
28
'en ' => [
29
- 'login ' => [ ' welcome ' => 'Welcome ' ] ,
30
- 'dashboard ' => [ ' statistics ' => 'Statistics ' ] ,
29
+ 'login. welcome ' => 'Welcome ' ,
30
+ 'dashboard. statistics ' => 'Statistics ' ,
31
31
],
32
32
],
33
33
$ this ->generator ->parse ()->getTranslations ()
@@ -45,12 +45,8 @@ public function testParsesMultiDimensionalTranslations(): void
45
45
$ this ->assertSame (
46
46
[
47
47
'en ' => [
48
- 'login ' => [
49
- 'welcome ' => 'Welcome ' ,
50
- 'form ' => [
51
- 'first_name ' => 'First name ' ,
52
- ],
53
- ],
48
+ 'login.welcome ' => 'Welcome ' ,
49
+ 'login.form.first_name ' => 'First name ' ,
54
50
],
55
51
],
56
52
$ this ->generator ->parse ()->getTranslations ()
@@ -67,9 +63,7 @@ public function testIgnoresIrrelevantColumns(): void
67
63
$ this ->assertSame (
68
64
[
69
65
'en ' => [
70
- 'login ' => [
71
- 'welcome ' => 'Welcome ' ,
72
- ],
66
+ 'login.welcome ' => 'Welcome ' ,
73
67
],
74
68
],
75
69
$ this ->generator ->parse ()->getTranslations ()
@@ -89,22 +83,14 @@ public function testCanParseMultipleLocaleTranslations(): void
89
83
$ this ->assertSame (
90
84
[
91
85
'en ' => [
92
- 'login ' => [
93
- 'welcome ' => 'Welcome ' ,
94
- 'form ' => [
95
- 'first_name ' => 'First name ' ,
96
- ],
97
- ],
98
- 'dashboard ' => ['statistics ' => 'Statistics ' ],
86
+ 'login.welcome ' => 'Welcome ' ,
87
+ 'login.form.first_name ' => 'First name ' ,
88
+ 'dashboard.statistics ' => 'Statistics ' ,
99
89
],
100
90
'de ' => [
101
- 'login ' => [
102
- 'welcome ' => 'Wilkommen ' ,
103
- 'form ' => [
104
- 'first_name ' => 'Vorname ' ,
105
- ],
106
- ],
107
- 'dashboard ' => ['statistics ' => 'Statistik ' ],
91
+ 'login.welcome ' => 'Wilkommen ' ,
92
+ 'login.form.first_name ' => 'Vorname ' ,
93
+ 'dashboard.statistics ' => 'Statistik ' ,
108
94
],
109
95
],
110
96
$ this ->generator ->parse ()->getTranslations ()
@@ -126,17 +112,11 @@ public function testIgnoresEmptyTranslationFieldsInMultipleLocaleTranslations():
126
112
$ this ->assertSame (
127
113
[
128
114
'en ' => [
129
- 'login ' => [
130
- 'welcome ' => 'Welcome ' ,
131
- ],
132
- 'dashboard ' => ['statistics ' => 'Statistics ' ],
115
+ 'login.welcome ' => 'Welcome ' ,
116
+ 'dashboard.statistics ' => 'Statistics ' ,
133
117
],
134
118
'de ' => [
135
- 'login ' => [
136
- 'form ' => [
137
- 'first_name ' => 'Vorname ' ,
138
- ],
139
- ],
119
+ 'login.form.first_name ' => 'Vorname ' ,
140
120
],
141
121
],
142
122
$ this ->generator ->parse ()->getTranslations ()
@@ -154,9 +134,7 @@ public function testCanChooseDifferentRowsAsHeader(): void
154
134
$ this ->assertSame (
155
135
[
156
136
'en ' => [
157
- 'login ' => [
158
- 'welcome ' => 'Welcome ' ,
159
- ],
137
+ 'login.welcome ' => 'Welcome ' ,
160
138
],
161
139
],
162
140
$ this ->generator ->parse ()->getTranslations ()
@@ -174,9 +152,7 @@ public function testCanChooseDifferentColumnForTranslationKey(): void
174
152
$ this ->assertSame (
175
153
[
176
154
'en ' => [
177
- 'login ' => [
178
- 'welcome ' => 'Welcome ' ,
179
- ],
155
+ 'login.welcome ' => 'Welcome ' ,
180
156
],
181
157
],
182
158
$ this ->generator ->parse ()->getTranslations ()
@@ -195,9 +171,7 @@ public function testIgnoresRows(): void
195
171
$ this ->assertSame (
196
172
[
197
173
'en ' => [
198
- 'login ' => [
199
- 'welcome ' => 'Welcome ' ,
200
- ],
174
+ 'login.welcome ' => 'Welcome ' ,
201
175
],
202
176
],
203
177
$ this ->generator ->parse ()->getTranslations ()
@@ -224,9 +198,7 @@ public function testParsesFromDifferentSheetByName(): void
224
198
$ this ->assertSame (
225
199
[
226
200
'en ' => [
227
- 'login ' => [
228
- 'welcome ' => 'Welcome ' ,
229
- ],
201
+ 'login.welcome ' => 'Welcome ' ,
230
202
],
231
203
],
232
204
$ this ->generator ->parse ()->getTranslations ()
0 commit comments