diff --git a/public/locales/en/string.json b/public/locales/en/string.json index 142f8b9..2994890 100644 --- a/public/locales/en/string.json +++ b/public/locales/en/string.json @@ -257,5 +257,31 @@ "resultTitle": "Uppercase text", "shortDescription": "Convert text to uppercase", "title": "Convert to Uppercase" + }, + "urlEncode": { + "toolInfo": { + "description": "Load your string and it will automatically get URL-escaped.", + "shortDescription": "Quickly URL-escape a string.", + "longDescription": "This tool URL-encodes a string. Special URL characters get converted to percent-sign encoding. This encoding is called percent-encoding because each character's numeric value gets converted to a percent sign followed by a two-digit hexadecimal value. The hex values are determined based on the character's codepoint value. For example, a space gets escaped to %20, a colon to %3a, a slash to %2f. Characters that are not special stay unchanged. In case you also need to convert non-special characters to percent-encoding, then we've also added an extra option that lets you do that. Select the encode-non-special-chars option to enable this behavior.", + "title": "String URL encoder" + }, + "encodingOption": { + "title": "Encoding Options", + "nonSpecialCharPlaceholder": "Encode non-special characters", + "nonSpecialCharDescription": "If selected, then all characters in the input string will be converted to URL-encoding (not just special)." + }, + "inputTitle": "Input String", + "resultTitle": "Url-escaped String" + }, + "urlDecode": { + "toolInfo": { + "description": "Load your string and it will automatically get URL-unescaped.", + "shortDescription": "Quickly URL-unescape a string.", + "longDescription": "This tool URL-decodes a previously URL-encoded string. URL-decoding is the inverse operation of URL-encoding. All percent-encoded characters get decoded to characters that you can understand. Some of the most well known percent-encoded values are %20 for a space, %3a for a colon, %2f for a slash, and %3f for a question mark. The two digits following the percent sign are character's char code values in hex.", + "title": "String URL decoder" + }, + + "inputTitle": "Input String(URL-escaped)", + "resultTitle": "Output string" } } diff --git a/src/pages/tools/string/index.ts b/src/pages/tools/string/index.ts index 0ded96d..bd645f7 100644 --- a/src/pages/tools/string/index.ts +++ b/src/pages/tools/string/index.ts @@ -18,6 +18,8 @@ import { tool as stringBase64 } from './base64/meta'; import { tool as stringStatistic } from './statistic/meta'; import { tool as stringCensor } from './censor/meta'; import { tool as stringPasswordGenerator } from './password-generator/meta'; +import { tool as stringEncodeUrl } from './url-encode/meta'; +import { tool as StringDecodeUrl } from './url-decode/meta'; export const stringTools = [ stringSplit, @@ -39,5 +41,7 @@ export const stringTools = [ stringBase64, stringStatistic, stringCensor, - stringPasswordGenerator + stringPasswordGenerator, + stringEncodeUrl, + StringDecodeUrl ];