Skip to content

About

[READ ONLY] Subtree split of the translation component (see hypervel/components)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

75 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translation for Hypervel

Ask DeepWiki

Documentation: https://hypervel.org/docs/localization

Differences From Laravel

  • Translator::setLocale() changes the locale only for the current coroutine and does not affect other concurrent requests in the worker. Use the boot-only setBaseLocale() method to change the worker's default locale. The setFallback() method likewise changes the fallback shared by the worker.
  • Translator rejects JSON translation files whose top-level values are not strings or arrays, naming the file and key. A null value is allowed and means the key is untranslated.
  • setLocale(), setBaseLocale(), setFallback() and FileLoader::load() throw InvalidArgumentException for locales containing path separators, .. or null bytes, or equal to .. A locale passed directly to get() is therefore rejected when it is loaded from files. Laravel's file loader returns no lines for them instead. Validate user-supplied locales before using them.

Ported from: https://github.com/laravel/framework

About

[READ ONLY] Subtree split of the translation component (see hypervel/components)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages