Skip to content

Commit 00cceab

Browse files
committed
#3 Use translations (customizable)
1 parent e95f27c commit 00cceab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ServiceProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ public function boot(): void
1414
Nova::script('nova-unlayer-field', __DIR__.'/../dist/js/field.js');
1515
});
1616

17+
$this->publishes([
18+
__DIR__.'/../resources/lang/' => resource_path('lang/vendor/nova-unlayer-field'),
19+
]);
20+
1721
$this->registerTranslations();
1822
}
1923

@@ -22,5 +26,6 @@ protected function registerTranslations(): void
2226
$currentLocale = app()->getLocale();
2327

2428
Nova::translations(__DIR__."/../resources/lang/$currentLocale.json");
29+
Nova::translations(resource_path("lang/vendor/nova-unlayer-field/$currentLocale.json"));
2530
}
2631
}

0 commit comments

Comments
 (0)