Skip to content

Commit

Permalink
using lang-detector on .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
vluzrmos committed Jul 22, 2015
1 parent da2ce73 commit 6e77f52
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 57 deletions.
23 changes: 14 additions & 9 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ QUEUE_DRIVER=sync
# Your Team Slack Token
SLACK_TOKEN=YOUR-SLACK-TOKEN-WITH-ADMIN-PRIVILEGIES

# Web Socket Server
#####################################################################################
## Language Detector Configurations ##
## see https://github.com/vluzrmos/laravel-language-detector ##
#####################################################################################

#Web Socket Server Hostname, Empty will use same of http server (ex.: http://localhost)
WS_HOST=

#Web Socket Server Port
WS_PORT=8080

# Interval to check slack status
SLACK_STATUS_INTERVAL=3000
#Indicates whenever should autodetect the language (it could be removed)
LANG_DETECTOR_AUTODETECT=true
#The driver to use, default is browser
LANG_DETECTOR_DRIVER="browser"
#The segment to use in uri or subdomain driver, default 0 (it could be removed)
LANG_DETECTOR_SEGMENT=0
#A comma-separated list of available languages on application
LANG_DETECTOR_LANGUAGES="en,pt_BR"
#To aliase the language use the notation ":", "=", ":=" or "=>" to separate the alias and its value.
# LANG_DETECTOR_LANGUAGES="en, en-us:en, pt-br:pt_BR"
2 changes: 0 additions & 2 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@
|
*/

$app->configure('lang-detector');

$app->register('App\Providers\AppServiceProvider');
$app->register('App\Providers\ValidationServiceProvider');
$app->register('App\Providers\TranslatorServiceProvider');
Expand Down
32 changes: 16 additions & 16 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 0 additions & 30 deletions config/lang-detector.php

This file was deleted.

0 comments on commit 6e77f52

Please sign in to comment.