Skip to content

Commit

Permalink
Merge pull request #88 from JeffBeltran/hettiger-fix-localization
Browse files Browse the repository at this point in the history
Hettiger fix localization
  • Loading branch information
JeffBeltran committed May 13, 2023
2 parents 7e0cef7 + 487ebf3 commit 3552c99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/DeleteTokenModal.vue
Expand Up @@ -8,7 +8,7 @@
<ModalContent>
<div class="flex flex-col">
<div class="flex flex-col space-y-2">
Are you sure you want to revoke the following token?
{{ __("Are you sure you want to revoke the following token?") }}
<pre
class="p-4 rounded mt-3 text-red-500 text-center text-lg bg-gray-50 bor"
>{{ tokenName }}</pre
Expand Down
5 changes: 3 additions & 2 deletions resources/lang/en.json
@@ -1,13 +1,14 @@
{
"Abilities": "Abilities",
"Are you sure you want to delete the :token token?": "Are you sure you want to delete the :token token?",
"Are you sure you want to revoke the following token?": "Are you sure you want to revoke the following token?",
"Cancel": "Cancel",
"Comma separated list of abilities to apply to token.": "Comma separated list of abilities to apply to token.",
"Confirm": "Confirm",
"Copy": "Copy",
"Create Personal Access Token": "Create Personal Access Token",
"Create Token": "Create Token",
"Delete Token": "Delete Token",
"Create New Token": "Create New Token",
"Revoke Token": "Revoke Token",
"Last Used At": "Last Used At",
"Make sure to copy your new personal access token now. You won't be able to see it again!": "Make sure to copy your new personal access token now. You won't be able to see it again!",
"Name": "Name",
Expand Down
8 changes: 4 additions & 4 deletions src/ToolServiceProvider.php
Expand Up @@ -28,8 +28,8 @@ public function boot()
});

$this->publishes([
__DIR__ . "/../resources/lang" => resource_path(
"lang/vendor/" . static::$name
__DIR__ . "/../resources/lang" => lang_path(
"vendor/" . static::$name
),
]);

Expand Down Expand Up @@ -73,8 +73,8 @@ protected function routes()
*/
private static function getTranslations(): array
{
$translationFile = resource_path(
"lang/vendor/" . static::$name . "/" . app()->getLocale() . ".json"
$translationFile = lang_path(
"vendor/" . static::$name . "/" . app()->getLocale() . ".json"
);

if (!is_readable($translationFile)) {
Expand Down

0 comments on commit 3552c99

Please sign in to comment.