Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42 lines (37 sloc)
917 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Translation; | |
interface Translator | |
{ | |
/** | |
* Get the translation for a given key. | |
* | |
* @param string $key | |
* @param array $replace | |
* @param string|null $locale | |
* @return mixed | |
*/ | |
public function get($key, array $replace = [], $locale = null); | |
/** | |
* Get a translation according to an integer value. | |
* | |
* @param string $key | |
* @param \Countable|int|array $number | |
* @param array $replace | |
* @param string|null $locale | |
* @return string | |
*/ | |
public function choice($key, $number, array $replace = [], $locale = null); | |
/** | |
* Get the default locale being used. | |
* | |
* @return string | |
*/ | |
public function getLocale(); | |
/** | |
* Set the default locale. | |
* | |
* @param string $locale | |
* @return void | |
*/ | |
public function setLocale($locale); | |
} |