feat(i18n): hash text
This commit is contained in:
		
							parent
							
								
									4365226d01
								
							
						
					
					
						commit
						6f29dedc0d
					
				| @ -37,14 +37,17 @@ const hashText = (algo: AlgoNames, value: string) => formatWithEncoding(algos[al | |||||||
| <template> | <template> | ||||||
|   <div> |   <div> | ||||||
|     <c-card> |     <c-card> | ||||||
|       <c-input-text v-model:value="clearText" multiline raw-text placeholder="Your string to hash..." rows="3" autosize autofocus label="Your text to hash:" /> |       <c-input-text | ||||||
|  |         v-model:value="clearText" multiline raw-text :placeholder="$t('tools.hash-text.toHashPlaceholder')" | ||||||
|  |         rows="3" autosize autofocus :label="$t('tools.hash-text.toHashLabel')" | ||||||
|  |       /> | ||||||
| 
 | 
 | ||||||
|       <n-divider /> |       <n-divider /> | ||||||
| 
 | 
 | ||||||
|       <c-select |       <c-select | ||||||
|         v-model:value="encoding" |         v-model:value="encoding" | ||||||
|         mb-4 |         mb-4 | ||||||
|         label="Digest encoding" |         :label="$t('tools.hash-text.encoding')" | ||||||
|         :options="[ |         :options="[ | ||||||
|           { |           { | ||||||
|             label: 'Binary (base 2)', |             label: 'Binary (base 2)', | ||||||
|  | |||||||
| @ -1,11 +1,11 @@ | |||||||
| import { EyeOff } from '@vicons/tabler'; | import { EyeOff } from '@vicons/tabler'; | ||||||
| import { defineTool } from '../tool'; | import { defineTool } from '../tool'; | ||||||
|  | import { translate } from '@/plugins/i18n.plugin'; | ||||||
| 
 | 
 | ||||||
| export const tool = defineTool({ | export const tool = defineTool({ | ||||||
|   name: 'Hash text', |   name: translate('tools.hash-text.title'), | ||||||
|   path: '/hash-text', |   path: '/hash-text', | ||||||
|   description: |   description: translate('tools.hash-text.description'), | ||||||
|     'Hash a text string using the function you need : MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 or RIPEMD160', |  | ||||||
|   keywords: [ |   keywords: [ | ||||||
|     'hash', |     'hash', | ||||||
|     'digest', |     'digest', | ||||||
|  | |||||||
							
								
								
									
										8
									
								
								src/tools/hash-text/locales/en.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								src/tools/hash-text/locales/en.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | |||||||
|  | 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' | ||||||
|  | 
 | ||||||
|  |     toHashPlaceholder: 'Your string to hash...' | ||||||
|  |     toHashLabel: 'Your text to hash:' | ||||||
|  |     encoding: 'Digest encoding' | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user