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 bec7fea commit 4d8a51fCopy full SHA for 4d8a51f
tests/TestCase/I18n/I18nTest.php
@@ -251,12 +251,18 @@ public function testBasicDomainFunction()
251
$package = new Package('default');
252
$package->setMessages([
253
'Cow' => 'Le moo',
254
- 'The {0} is tasty' => 'The {0} is delicious'
+ 'The {0} is tasty' => 'The {0} is delicious',
255
+ 'Average price {0}' => 'Price Average {0}',
256
]);
257
return $package;
258
});
259
+ $this->assertEquals('Le moo', __d('custom', 'Cow'));
260
+
261
$result = __d('custom', 'The {0} is tasty', ['fruit']);
262
$this->assertEquals('The fruit is delicious', $result);
263
264
+ $result = __d('custom', 'Average price {0}', ['9.99']);
265
+ $this->assertEquals('Price Average 9.99', $result);
266
}
267
268
/**
0 commit comments