Search by

hypervel / translation

albertchtbinaryfire

The translation package for Hypervel.

Package info

github.com/hypervel/translation

Issues

pkg:composer/hypervel/translation

Statistics

Installs: 19 639

Dependents: 3

Suggesters: 0

Stars: 0

v0.3.28 2026-01-18 10:54 UTC

README

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