We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6488d79 commit f6041c1Copy full SHA for f6041c1
tests/Feature/TranslatorTest.php
@@ -219,6 +219,26 @@
219
]);
220
});
221
222
+it('sets json translations', function () {
223
+ $translator = new Translator(
224
+ storage: $this->getStorage(),
225
+ );
226
+
227
+ $translator->setTranslations('fr', Translator::JSON_NAMESPACE, [
228
+ 'Missing' => 'Absent',
229
+ 'Empty' => 'Vide',
230
+ ]);
231
232
+ $translations = $translator->getTranslations('fr', Translator::JSON_NAMESPACE);
233
234
+ expect(
235
+ $translations->toArray()
236
+ )->toMatchArray([
237
238
239
240
+});
241
242
it('deletes translations', function () {
243
$translator = new Translator(
244
storage: $this->getStorage(),
0 commit comments