Translator
class Translator (View source)
Methods
                    __construct(string $lang, string $directory, bool $auto_detected = false)
        
                                            
                
            Translator constructor.
                    static Translator
                
                
                    configure(string $lang, string $directory)
        
                                            
                
            Configure translator
                    static Translator
                
                
                    getInstance()
        
                                            
                
            Get singleton instance
                    static bool
                
                
                    isLocale(string $locale)
        
                                            
                
            Check the locale
                    static string
                
                
                    translate(string $key, array $data = [], bool $plurial = false)
        
                                            
                
            Allows translation
                    static string
                
                
                    single(string $key, array $data = [])
        
                                            
                
            Make singleton translation
                    static string
                
                
                    plurial(string $key, array $data = [])
        
                                            
                
            Make plurial translation
                    static void
                
                
                    setLocale(string $locale)
        
                                            
                
            Update locale
                    static string
                
                
                    getLocale()
        
                                            
                
            Get locale
                    string
                
                
                    __call(string $name, array $arguments)
        
                                            
                
            __call
Details
        
                            
    __construct(string $lang, string $directory, bool $auto_detected = false)
        
    
    Translator constructor.
        
                static            Translator
    configure(string $lang, string $directory)
        
    
    Configure translator
        
                static            Translator
    getInstance()
        
    
    Get singleton instance
        
                static            bool
    isLocale(string $locale)
        
    
    Check the locale
        
                static            string
    translate(string $key, array $data = [], bool $plurial = false)
        
    
    Allows translation
        
                static            string
    single(string $key, array $data = [])
        
    
    Make singleton translation
        
                static            string
    plurial(string $key, array $data = [])
        
    
    Make plurial translation
        
                static            void
    setLocale(string $locale)
        
    
    Update locale
        
                static            string
    getLocale()
        
    
    Get locale
        
                            string
    __call(string $name, array $arguments)
        
    
    __call