Skip to content

Commit

Permalink
Remove placeholder translation
Browse files Browse the repository at this point in the history
Doesn't work as expected. Translation is still possible via config or
the Laravel Nova translation files.
  • Loading branch information
jhae-de committed Nov 3, 2019
1 parent e401414 commit 7e206f4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/js/filter.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/filter.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/js/filter.js": "/js/filter.js?id=ad8392114f895dc66243",
"/js/filter.js": "/js/filter.js?id=4266e70cb7a54dc0da12",
"/css/filter.css": "/css/filter.css?id=f3ba983b895c4611d7b4",
"/js/filter.js.map": "/js/filter.js.map?id=da8df9a56fe36fa6f24b",
"/js/filter.js.map": "/js/filter.js.map?id=18ca3423b59009eae08e",
"/css/filter.css.map": "/css/filter.css.map?id=3a7186ee9f42604ffbf2"
}
}
3 changes: 0 additions & 3 deletions resources/lang/de/filter.json

This file was deleted.

7 changes: 0 additions & 7 deletions src/FilterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ class FilterServiceProvider extends ServiceProvider
{
protected const JS_FILE = __DIR__ . '/../dist/js/filter.js';
protected const CSS_FILE = __DIR__ . '/../dist/css/filter.css';
protected const LANGUAGE_FILES = [
'de' => __DIR__ . '/../resources/lang/de/filter.json',
];

public function boot(): void
{
Nova::serving(static function () {
Nova::script('date-range-filter', self::JS_FILE);
Nova::style('date-range-filter', self::CSS_FILE);

foreach (self::LANGUAGE_FILES as $languageFile) {
Nova::translations($languageFile);
}
});
}
}

0 comments on commit 7e206f4

Please sign in to comment.