mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-21 03:20:57 -04:00
Added Swedish languge option
This commit is contained in:
parent
f9aca82e23
commit
a73bdab540
29
database/migrations/2015_04_12_093447_add_sv_language.php
Normal file
29
database/migrations/2015_04_12_093447_add_sv_language.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class AddSvLanguage extends Migration {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
DB::table('languages')->insert(['name' => 'Swedish', 'locale' => 'sv']);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$language = \App\Models\Language::whereLocale('sv')->first();
|
||||||
|
$language->delete();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user