+
Skip to content

refactor(i18n): added locales per tool #861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/tools/base64-file-converter/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { FileDigit } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Base64 file converter',
name: translate('tools.base64-file-converter.title'),
path: '/base64-file-converter',
description: 'Convert string, files or images into a it\'s base64 representation.',
description: translate('tools.base64-file-converter.description'),
keywords: ['base64', 'converter', 'upload', 'image', 'file', 'conversion', 'web', 'data', 'format'],
component: () => import('./base64-file-converter.vue'),
icon: FileDigit,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/base64-file-converter/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
base64-file-converter:
title: Base64 file converter
description: Convert string, files or images into a it\'s base64 representation.
5 changes: 3 additions & 2 deletions src/tools/base64-string-converter/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { FileDigit } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Base64 string encoder/decoder',
name: translate('tools.base64-string-converter.title'),
path: '/base64-string-converter',
description: 'Simply encode and decode string into a their base64 representation.',
description: translate('tools.base64-string-converter.description'),
keywords: ['base64', 'converter', 'conversion', 'web', 'data', 'format', 'atob', 'btoa'],
component: () => import('./base64-string-converter.vue'),
icon: FileDigit,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/base64-string-converter/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
base64-string-converter:
title: Base64 string encoder/decoder
description: Simply encode and decode string into a their base64 representation.
5 changes: 3 additions & 2 deletions src/tools/basic-auth-generator/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { PasswordRound } from '@vicons/material';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Basic auth generator',
name: translate('tools.basic-auth-generator.title'),
path: '/basic-auth-generator',
description: 'Generate a base64 basic auth header from an username and a password.',
description: translate('tools.basic-auth-generator.description'),
keywords: [
'basic',
'auth',
Expand Down
4 changes: 4 additions & 0 deletions src/tools/basic-auth-generator/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
basic-auth-generator:
title: Basic auth generator
description: Generate a base64 basic auth header from an username and a password.
6 changes: 3 additions & 3 deletions src/tools/bcrypt/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { LockSquare } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Bcrypt',
name: translate('tools.bcrypt.title'),
path: '/bcrypt',
description:
'Hash and compare text string using bcrypt. Bcrypt is a password-hashing function based on the Blowfish cipher.',
description: translate('tools.bcrypt.description'),
keywords: ['bcrypt', 'hash', 'compare', 'password', 'salt', 'round', 'storage', 'crypto'],
component: () => import('./bcrypt.vue'),
icon: LockSquare,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/bcrypt/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
bcrypt:
title: Bcrypt
description: Hash and compare text string using bcrypt. Bcrypt is a password-hashing function based on the Blowfish cipher.
5 changes: 3 additions & 2 deletions src/tools/benchmark-builder/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { SpeedFilled } from '@vicons/material';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Benchmark builder',
name: translate('tools.benchmark-builder.title'),
path: '/benchmark-builder',
description: 'Easily compare execution time of tasks with this very simple online benchmark builder.',
description: translate('tools.benchmark-builder.description'),
keywords: ['benchmark', 'builder', 'execution', 'duration', 'mean', 'variance'],
component: () => import('./benchmark-builder.vue'),
icon: SpeedFilled,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/benchmark-builder/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
benchmark-builder:
title: Benchmark builder
description: Easily compare execution time of tasks with this very simple online benchmark builder.
5 changes: 3 additions & 2 deletions src/tools/bip39-generator/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { AlignJustified } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'BIP39 passphrase generator',
name: translate('tools.bip39-generator.title'),
path: '/bip39-generator',
description: 'Generate BIP39 passphrase from existing or random mnemonic, or get the mnemonic from the passphrase.',
description: translate('tools.bip39-generator.description'),
keywords: ['BIP39', 'passphrase', 'generator', 'mnemonic', 'entropy'],
component: () => import('./bip39-generator.vue'),
icon: AlignJustified,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/bip39-generator/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
bip39-generator:
title: BIP39 passphrase generator
description: Generate BIP39 passphrase from existing or random mnemonic, or get the mnemonic from the passphrase.
5 changes: 3 additions & 2 deletions src/tools/camera-recorder/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Camera } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Camera recorder',
name: translate('tools.camera-recorder.title'),
path: '/camera-recorder',
description: 'Take a picture or record a video from your webcam or camera.',
description: translate('tools.camera-recorder.description'),
keywords: ['camera', 'recoder'],
component: () => import('./camera-recorder.vue'),
icon: Camera,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/camera-recorder/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
camera-recorder:
title: Camera recorder
description: Take a picture or record a video from your webcam or camera.
5 changes: 3 additions & 2 deletions src/tools/case-converter/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { LetterCaseToggle } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Case converter',
name: translate('tools.case-converter.title'),
path: '/case-converter',
description: 'Change the case of a string and chose between different formats',
description: translate('tools.case-converter.description'),
keywords: [
'case',
'converter',
Expand Down
4 changes: 4 additions & 0 deletions src/tools/case-converter/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
case-converter:
title: Case converter
description: Change the case of a string and chose between different formats
5 changes: 3 additions & 2 deletions src/tools/chmod-calculator/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { FileInvoice } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Chmod calculator',
name: translate('tools.chmod-calculator.title'),
path: '/chmod-calculator',
description: 'Compute your chmod permissions and commands with this online chmod calculator.',
description: translate('tools.chmod-calculator.description'),
keywords: [
'chmod',
'calculator',
Expand Down
4 changes: 4 additions & 0 deletions src/tools/chmod-calculator/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
chmod-calculator:
title: Chmod calculator
description: Compute your chmod permissions and commands with this online chmod calculator.
5 changes: 3 additions & 2 deletions src/tools/chronometer/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { TimerOutlined } from '@vicons/material';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Chronometer',
name: translate('tools.chronometer.title'),
path: '/chronometer',
description: 'Monitor the duration of a thing. Basically a chronometer with simple chronometer features.',
description: translate('tools.chronometer.description'),
keywords: ['chronometer', 'time', 'lap', 'duration', 'measure', 'pause', 'resume', 'stopwatch'],
component: () => import('./chronometer.vue'),
icon: TimerOutlined,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/chronometer/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
chronometer:
title: Chronometer
description: Monitor the duration of a thing. Basically a chronometer with simple chronometer features.
5 changes: 3 additions & 2 deletions src/tools/color-converter/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Palette } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Color converter',
name: translate('tools.color-converter.title'),
path: '/color-converter',
description: 'Convert color between the different formats (hex, rgb, hsl and css name)',
description: translate('tools.color-converter.description'),
keywords: ['color', 'converter'],
component: () => import('./color-converter.vue'),
icon: Palette,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/color-converter/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
color-converter:
title: Color converter
description: Convert color between the different formats (hex, rgb, hsl and css name)
5 changes: 3 additions & 2 deletions src/tools/crontab-generator/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Alarm } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Crontab generator',
name: translate('tools.crontab-generator.title'),
path: '/crontab-generator',
description: 'Validate and generate crontab and get the human readable description of the cron schedule.',
description: translate('tools.crontab-generator.description'),
keywords: [
'crontab',
'generator',
Expand Down
4 changes: 4 additions & 0 deletions src/tools/crontab-generator/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
crontab-generator:
title: Crontab generator
description: Validate and generate crontab and get the human readable description of the cron schedule.
5 changes: 3 additions & 2 deletions src/tools/date-time-converter/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Calendar } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Date-time converter',
name: translate('tools.date-converter.title'),
path: '/date-converter',
description: 'Convert date and time into the various different formats',
description: translate('tools.date-converter.description'),
keywords: ['date', 'time', 'converter', 'iso', 'utc', 'timezone', 'year', 'month', 'day', 'minute', 'seconde'],
component: () => import('./date-time-converter.vue'),
icon: Calendar,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/date-time-converter/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
date-converter:
title: Date-time converter
description: Convert date and time into the various different formats
5 changes: 3 additions & 2 deletions src/tools/device-information/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { DeviceDesktop } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Device information',
name: translate('tools.device-information.title'),
path: '/device-information',
description: 'Get information about your current device (screen size, pixel-ratio, user agent, ...)',
description: translate('tools.device-information.description'),
keywords: [
'device',
'information',
Expand Down
4 changes: 4 additions & 0 deletions src/tools/device-information/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
device-information:
title: Device information
description: Get information about your current device (screen size, pixel-ratio, user agent, ...)
5 changes: 3 additions & 2 deletions src/tools/docker-run-to-docker-compose-converter/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { BrandDocker } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Docker run to Docker compose converter',
name: translate('tools.docker-run-to-docker-compose-converter.title'),
path: '/docker-run-to-docker-compose-converter',
description: 'Turns docker run commands into docker-compose files!',
description: translate('tools.docker-run-to-docker-compose-converter.description'),
keywords: ['docker', 'run', 'compose', 'yaml', 'yml', 'convert', 'deamon'],
component: () => import('./docker-run-to-docker-compose-converter.vue'),
icon: BrandDocker,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
docker-run-to-docker-compose-converter:
title: Docker run to Docker compose converter
description: Turns docker run commands into docker-compose files!
5 changes: 3 additions & 2 deletions src/tools/emoji-picker/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { MoodSmile } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Emoji picker',
name: translate('tools.emoji-picker.title'),
path: '/emoji-picker',
description: 'Copy and paste emojis easily and get the unicode and code points value of each emoji.',
description: translate('tools.emoji-picker.description'),
keywords: ['emoji', 'picker', 'unicode', 'copy', 'paste'],
component: () => import('./emoji-picker.vue'),
icon: MoodSmile,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/emoji-picker/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
emoji-picker:
title: Emoji picker
description: Copy and paste emojis easily and get the unicode and code points value of each emoji.
5 changes: 3 additions & 2 deletions src/tools/encryption/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Lock } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Encrypt / decrypt text',
name: translate('tools.encryption.title'),
path: '/encryption',
description: 'Encrypt and decrypt text clear text using crypto algorithm like AES, TripleDES, Rabbit or RC4.',
description: translate('tools.encryption.description'),
keywords: ['cypher', 'encipher', 'text', 'AES', 'TripleDES', 'Rabbit', 'RC4'],
component: () => import('./encryption.vue'),
icon: Lock,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/encryption/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
encryption:
title: Encrypt / decrypt text
description: Encrypt and decrypt text clear text using crypto algorithm like AES, TripleDES, Rabbit or RC4.
6 changes: 3 additions & 3 deletions src/tools/eta-calculator/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Hourglass } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'ETA calculator',
name: translate('tools.eta-calculator.title'),
path: '/eta-calculator',
description:
'An ETA (Estimated Time of Arrival) calculator to know the approximate end time of a task, for example the moment of ending of a download.',
description: translate('tools.eta-calculator.description'),
keywords: ['eta', 'calculator', 'estimated', 'time', 'arrival', 'average'],
component: () => import('./eta-calculator.vue'),
icon: Hourglass,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/eta-calculator/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
eta-calculator:
title: ETA calculator
description: An ETA (Estimated Time of Arrival) calculator to know the approximate end time of a task, for example the moment of ending of a download.
6 changes: 3 additions & 3 deletions src/tools/git-memo/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { BrandGit } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Git cheatsheet',
name: translate('tools.git-memo.title'),
path: '/git-memo',
description:
'Git is a decentralized version management software. With this cheatsheet you will have a quick access to the most common git commands.',
description: translate('tools.git-memo.description'),
keywords: ['git', 'push', 'force', 'pull', 'commit', 'amend', 'rebase', 'merge', 'reset', 'soft', 'hard', 'lease'],
component: () => import('./git-memo.vue'),
icon: BrandGit,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/git-memo/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
git-memo:
title: Git cheatsheet
description: Git is a decentralized version management software. With this cheatsheet you will have a quick access to the most common git commands.
6 changes: 3 additions & 3 deletions src/tools/hash-text/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { EyeOff } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Hash text',
name: translate('tools.hash-text.title'),
path: '/hash-text',
description:
'Hash a text string using the function you need : MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 or RIPEMD160',
description: translate('tools.hash-text.description'),
keywords: [
'hash',
'digest',
Expand Down
4 changes: 4 additions & 0 deletions src/tools/hash-text/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tools:
hash-text:
title: Hash text
description: 'Hash a text string using the function you need : MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 or RIPEMD160'
6 changes: 3 additions & 3 deletions src/tools/hmac-generator/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { ShortTextRound } from '@vicons/material';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';

export const tool = defineTool({
name: 'Hmac generator',
name: translate('tools.hmac-generator.title'),
path: '/hmac-generator',
description:
'Computes a hash-based message authentication code (HMAC) using a secret key and your favorite hashing function.',
description: translate('tools.hmac-generator.description'),
keywords: ['hmac', 'generator', 'MD5', 'SHA1', 'SHA256', 'SHA224', 'SHA512', 'SHA384', 'SHA3', 'RIPEMD160'],
component: () => import('./hmac-generator.vue'),
icon: ShortTextRound,
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载