Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #4 from logicsolutions-jimmy-fang/master

多語系
  • Loading branch information
r567tw committed Oct 9, 2019
2 parents f3ab7fb + fd05d09 commit 9957deac8788ee8bd20ccb3a0cd8ce867e352f0e
Showing with 15 additions and 1 deletion.
  1. +5 −0 resources/lang/en/message.php
  2. +5 −0 resources/lang/zh-TW/message.php
  3. +1 −1 resources/views/welcome.blade.php
  4. +4 −0 routes/web.php
@@ -0,0 +1,5 @@
<?php

return [
'welcome' => 'Welcome to our application'
];
@@ -0,0 +1,5 @@
<?php

return [
'welcome' => '歡迎來到我們的應用程式'
];
@@ -81,7 +81,7 @@

<div class="content">
<div class="title m-b-md">
Laravel
{{ trans('message.welcome') }}
</div>

<div class="links">
@@ -31,5 +31,9 @@
Route::get('upload','UploadController@uploadPage');
Route::post('upload','UploadController@upload');

Route::get('welcome/{locale}', function ($locale) {
app()->setLocale($locale);
return view('welcome');
});


0 comments on commit 9957dea

Please sign in to comment.
You can’t perform that action at this time.