diff --git a/locales/de.yml b/locales/de.yml index dfe4fb3f..85b98420 100644 --- a/locales/de.yml +++ b/locales/de.yml @@ -527,3 +527,33 @@ tools: html: 'HTML-Ausgabe:' button: print: Als PDF drucken + regex-memo: + title: Regex-Spickzettel + description: Spickzettel für Javascript Regex/Regulärer Ausdruck + regex-tester: + title: Regex-Tester + description: >- + Teste einen regulären Ausdruck, erhalte eine Liste mit Treffern und ein + Diagramm. + regex-input: 'Regex zum Testen:' + regex-input-placeholder: Eingabe des zu testenden regulären Ausdrucks + link: Siehe Spickzettel für reguläre Ausdrücke + text-input: 'Zu prüfender Text:' + text-input-placeholder: Eingabe des zu prüfenden Texts + matches: Treffer + text-index: Index im Text + value: Wert + captures: Erfassungen + groups: Gruppen + sample: Beispiel für passenden Text + diagram: Regex-Diagramm + global: Globale Suche + ignoreCase: Suche ohne Berücksichtigung der Groß-/Kleinschreibung + multiline: Ermöglicht die Übereinstimmung von ^ und $ neben Zeilenumbruchzeichen. + dotAll: |- + Ermöglicht . + passend zu Zeilenumbruchzeichen. + unicode: |- + Unicode; + behandelt ein Muster als eine Folge von Unicode-Codepunkten. + unicodeSets: Ein Upgrade zum U-Modus mit mehr Unicode-Funktionen. diff --git a/locales/en.yml b/locales/en.yml index dbea6678..b750ab94 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -496,3 +496,27 @@ tools: html: 'Output HTML:' button: print: Print as PDF + regex-memo: + title: Regex cheatsheet + description: Javascript Regex/Regular Expression cheatsheet + regex-tester: + title: Regex Tester + description: Test a regular expression, get a list of matches and a diagram. + regex-input: 'Regex to test:' + regex-input-placeholder: Put the regex to test + link: See Regular Expression Cheatsheet + text-input: 'Text to match:' + text-input-placeholder: Put the text to match + matches: Matches + text-index: Index in text + value: Value + captures: Captures + groups: Groups + sample: Sample matching text + diagram: Regex Diagram + global: Global search + ignoreCase: Case-insensitive search + multiline: Allows ^ and $ to match next to newline characters. + dotAll: Allows . to match newline characters. + unicode: Unicode; treat a pattern as a sequence of Unicode code points. + unicodeSets: An upgrade to the u mode with more Unicode features. diff --git a/src/tools/regex-memo/index.ts b/src/tools/regex-memo/index.ts index f1f56489..01cf0b3d 100644 --- a/src/tools/regex-memo/index.ts +++ b/src/tools/regex-memo/index.ts @@ -1,10 +1,11 @@ import { BrandJavascript } from '@vicons/tabler'; import { defineTool } from '../tool'; +import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ - name: 'Regex cheatsheet', + name: translate('tools.regex-memo.title'), path: '/regex-memo', - description: 'Javascript Regex/Regular Expression cheatsheet', + description: translate('tools.regex-memo.description'), keywords: ['regex', 'regular', 'expression', 'javascript', 'memo', 'cheatsheet'], component: () => import('./regex-memo.vue'), icon: BrandJavascript, diff --git a/src/tools/regex-tester/index.ts b/src/tools/regex-tester/index.ts index 9cc542f0..db53d552 100644 --- a/src/tools/regex-tester/index.ts +++ b/src/tools/regex-tester/index.ts @@ -1,10 +1,11 @@ import { Language } from '@vicons/tabler'; import { defineTool } from '../tool'; +import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ - name: 'Regex Tester', + name: translate('tools.regex-tester.title'), path: '/regex-tester', - description: 'Regex Tester', + description: translate('tools.regex-tester.description'), keywords: ['regex', 'tester', 'sample', 'expression'], component: () => import('./regex-tester.vue'), icon: Language, diff --git a/src/tools/regex-tester/regex-tester.vue b/src/tools/regex-tester/regex-tester.vue index a1fa7958..302f08fa 100644 --- a/src/tools/regex-tester/regex-tester.vue +++ b/src/tools/regex-tester/regex-tester.vue @@ -15,6 +15,7 @@ const dotAll = ref(true); const unicode = ref(true); const unicodeSets = ref(false); const visualizerSVG = ref(); +const { t } = useI18n(); const regexValidation = useValidation({ source: regex, @@ -95,33 +96,33 @@ watchEffect( - See Regular Expression Cheatsheet + {{ t('tools.regex-tester.link') }} - Global search. (g) + Global search (g) - Case-insensitive search. (i) + Case-insensitive search (i) - Multiline(m) + Multiline (m) - Singleline(s) + Singleline (s) - Unicode(u) + Unicode (u) - Unicode Sets (v) + Unicode Sets (v) @@ -129,28 +130,28 @@ watchEffect( - + - Index in text + {{ t('tools.regex-tester.text-index') }} - Value + {{ t('tools.regex-tester.value') }} - Captures + {{ t('tools.regex-tester.captures') }} - Groups + {{ t('tools.regex-tester.groups') }} @@ -180,11 +181,11 @@ watchEffect( - +
{{ sample }}
- +