public function testSimilarWordsParsing() { $path = __DIR__ . '/../fixtures/lang'; $fileLoader = new FileLoader(new Filesystem(), $path); $translator = new Translator($fileLoader, 'en'); $this->assertEquals('Displayed records: 1-100 of 10', $translator->get('lang.test.pagination', ['from' => 1, 'to' => 100, 'total' => 10])); }
/** * Get the translation for the given key. * * @param string $key * @param array $replace * @param string $locale * @return string * @static */ public static function get($key, $replace = array(), $locale = null) { return \October\Rain\Translation\Translator::get($key, $replace, $locale); }