PHP Classes

File: docs/md/I18Next-Locale.md

Recommend this page to a friend!
  Classes of Francesco Danti   ATK4 i18next PHP   docs/md/I18Next-Locale.md   Download  
File: docs/md/I18Next-Locale.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: ATK4 i18next PHP
Translate application texts like il8next-PHP
Author: By
Last change: Update documentation
Date: 5 years ago
Size: 1,178 bytes
 

Contents

Class file image Download

I18Next\Locale

  • Class name: Locale
  • Namespace: I18Next

Properties

$code

private string $code

  • Visibility: private

$processor

private \I18Next\Processor $processor

  • Visibility: private

$translations

private \I18Next\Translations $translations

  • Visibility: private

Methods

__construct

mixed I18Next\Locale::__construct(string code)

Locale constructor.

  • Visibility: public

Arguments

  • code string

load

mixed I18Next\Locale::load(string path, bool use_filename_as_namespace, string|null namespace_priority)

  • Visibility: public

Arguments

  • path string
  • use_filename_as_namespace bool
  • namespace_priority string|null

process

string|null I18Next\Locale::process(string key, array|null parameters, string|null context)

  • Visibility: public

Arguments

  • key string
  • parameters array|null
  • context string|null

setLoaderFormat

mixed I18Next\Locale::setLoaderFormat(string format)

  • Visibility: public

Arguments

  • format string