1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Extended translations system for arrays & extension

Extended the base Laravel translation system to
allow a locale to be based upon another.

Also adds functionality to take base & fallback locales into account when fetching
an array of translations.

Related to work done in #1159
This commit is contained in:
Dan Brown
2018-12-12 20:46:27 +00:00
parent 0e3d507ec2
commit 323bff7d6d
16 changed files with 185 additions and 61 deletions

View File

@@ -1,8 +1,6 @@
<?php
$de_formal = (include resource_path() . '/lang/de/' . basename(__FILE__));
$de_informal = [
];
return array_replace($de_formal, $de_informal);
// Extends 'de'
return [
//
];