Skip to content

Instantly share code, notes, and snippets.

@adamgoucher
Last active July 28, 2016 22:13
Show Gist options
  • Save adamgoucher/ef678aed583e9eef0a08748224f31881 to your computer and use it in GitHub Desktop.
Save adamgoucher/ef678aed583e9eef0a08748224f31881 to your computer and use it in GitHub Desktop.
How I would like to see Laravel's languages work.
/*
|--------------------------------------------------------------------------
| Application Locale Heirachy
|--------------------------------------------------------------------------
|
| The locales mapping specifies the heirarchy of locales. This allows for
| client-based as well as regional-based language overrides without having
| to maintain full language files for each one. The fallback_locale remains
| top of heirarchy
|
| locales => [
| 'fr-CA' => 'en-CA',
| ],
*/
locales => []
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'default_locale' => 'en',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'en',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment