hypervel / translation
The translation package for Hypervel.
v0.3.28
2026-01-18 10:54 UTC
Requires
- php: ^8.2
- hyperf/contract: ~3.1.0
- hypervel/filesystem: ^0.3
- hypervel/support: ^0.3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- 0.4.x-dev
- 0.3.x-dev
- dev-main / 0.3.x-dev
- v0.3.28
- v0.3.27
- v0.3.26
- v0.3.25
- v0.3.24
- v0.3.23
- v0.3.22
- v0.3.21
- v0.3.20
- v0.3.19
- v0.3.18
- v0.3.17
- v0.3.16
- v0.3.15
- v0.3.14
- v0.3.13
- v0.3.12
- v0.3.11
- v0.3.10
- v0.3.9
- v0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- 0.2.x-dev
- v0.2.12
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
This package is auto-updated.
Last update: 2026-11-02 12:42:44 UTC
README
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-onlysetBaseLocale()method to change the worker's default locale. ThesetFallback()method likewise changes the fallback shared by the worker.Translatorrejects JSON translation files whose top-level values are not strings or arrays, naming the file and key. Anullvalue is allowed and means the key is untranslated.setLocale(),setBaseLocale(),setFallback()andFileLoader::load()throwInvalidArgumentExceptionfor locales containing path separators,..or null bytes, or equal to.. A locale passed directly toget()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