Skip to content

Commit 2d448e8

Browse files
authored
Merge pull request #74 from joedixon/develop
Merge develop into master
2 parents 6850c0a + eb3fc8b commit 2d448e8

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

database/migrations/2018_08_29_200844_create_languages_table.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,16 @@ public function up()
2222
$table->timestamps();
2323
});
2424

25-
Language::create([
26-
'language' => config('app.locale'),
25+
$initialLanguages = array_unique([
26+
config('app.fallback_locale'),
27+
config('app.locale'),
2728
]);
29+
30+
foreach ($initialLanguages as $language) {
31+
Language::firstOrCreate([
32+
'language' => $language,
33+
]);
34+
}
2835
}
2936

3037
/**

src/Drivers/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function addGroup($language, $group)
254254
* @param array $translations
255255
* @return void
256256
*/
257-
private function saveGroupTranslations($language, $group, $translations)
257+
public function saveGroupTranslations($language, $group, $translations)
258258
{
259259
// here we check if it's a namespaced translation which need saving to a
260260
// different path

0 commit comments

Comments
 (0)