Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ktalib/json
Laravel's localization features provide a convenient way to retrieve strings in various languages, allowing you to easily support multiple languages within your application.
https://github.com/ktalib/json
laravel-s-localization
Last synced: 11 days ago
JSON representation
Laravel's localization features provide a convenient way to retrieve strings in various languages, allowing you to easily support multiple languages within your application.
- Host: GitHub
- URL: https://github.com/ktalib/json
- Owner: ktalib
- Created: 2022-09-19T21:04:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T11:28:32.000Z (about 2 years ago)
- Last Synced: 2024-11-09T23:09:25.330Z (2 months ago)
- Topics: laravel-s-localization
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel's localization features provide a convenient way to retrieve strings in various languages, allowing you to easily support multiple languages within your application.
Laravel provides two ways to manage translation strings. First, language strings may be stored in files within the lang directory. Within this directory, there may be subdirectories for each language supported by the application. This is the approach Laravel uses to manage translation strings for built-in Laravel features such as validation error messages:
/lang
/en
messages.php
/es
messages.phpOr, translation strings may be defined within JSON files that are placed within the lang directory. When taking this approach, each language supported by your application would have a corresponding JSON file within this directory. This approach is recommended for applications that have a large number of translatable strings:
/lang
en.json
es.json
Credits:
gitlocalize.com
Laravel.com