/var/www/hkosl.com/demo_google/application/vendor/illuminate/contracts/Translation/Translator.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php

namespace Illuminate\Contracts\Translation;

interface 
Translator
{
    
/**
     * Get the translation for a given key.
     *
     * @param  string  $key
     * @param  array   $replace
     * @param  string  $locale
     * @return mixed
     */
    
public function trans($key, array $replace = [], $locale null);

    
/**
     * Get a translation according to an integer value.
     *
     * @param  string  $key
     * @param  int|array|\Countable  $number
     * @param  array   $replace
     * @param  string  $locale
     * @return string
     */
    
public function transChoice($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);
}