aboutsummaryrefslogtreecommitdiff
path: root/src/tools/jwt-parser
diff options
context:
space:
mode:
authorGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2024-02-01 14:05:54 +0100
committerGravatar GitHub <noreply@github.com> 2024-02-01 14:05:54 +0100
commit95698cb9380d541b86144df4ee5fae310c234f20 (patch)
tree77cc753cfde545760f900770fdc51454ff89d90d /src/tools/jwt-parser
parent85b50bb8f0effc7de7f3050ee51b6e1d3b5acbf5 (diff)
downloadit-tools-95698cb9380d541b86144df4ee5fae310c234f20.tar.gz
it-tools-95698cb9380d541b86144df4ee5fae310c234f20.tar.zst
it-tools-95698cb9380d541b86144df4ee5fae310c234f20.zip
refactor(i18n): added locales per tool (#861)
Diffstat (limited to 'src/tools/jwt-parser')
-rw-r--r--src/tools/jwt-parser/index.ts5
-rw-r--r--src/tools/jwt-parser/locales/en.yml4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/jwt-parser/index.ts b/src/tools/jwt-parser/index.ts
index 7249ace..939b4b3 100644
--- a/src/tools/jwt-parser/index.ts
+++ b/src/tools/jwt-parser/index.ts
@@ -1,10 +1,11 @@
import { Key } from '@vicons/tabler';
import { defineTool } from '../tool';
+import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
- name: 'JWT parser',
+ name: translate('tools.jwt-parser.title'),
path: '/jwt-parser',
- description: 'Parse and decode your JSON Web Token (jwt) and display its content.',
+ description: translate('tools.jwt-parser.description'),
keywords: [
'jwt',
'parser',
diff --git a/src/tools/jwt-parser/locales/en.yml b/src/tools/jwt-parser/locales/en.yml
new file mode 100644
index 0000000..956f923
--- /dev/null
+++ b/src/tools/jwt-parser/locales/en.yml
@@ -0,0 +1,4 @@
+tools:
+ jwt-parser:
+ title: JWT parser
+ description: Parse and decode your JSON Web Token (jwt) and display its content.