@@ -27,10 +27,12 @@ impl Language {
2727
2828#[ derive( Clone ) ]
2929pub struct Translations {
30+ pub note : & ' static str ,
3031 pub note_placeholder : & ' static str ,
32+ pub mode : & ' static str ,
3133 pub no_encryption : & ' static str ,
3234 pub password_encryption : & ' static str ,
33- pub cipher : & ' static str ,
35+ pub algorithm : & ' static str ,
3436 pub password : & ' static str ,
3537 pub password_placeholder : & ' static str ,
3638 pub generate_button : & ' static str ,
@@ -60,10 +62,12 @@ pub struct Translations {
6062pub fn get_translations ( lang : Language ) -> Translations {
6163 match lang {
6264 Language :: English => Translations {
65+ note : "Note" ,
6366 note_placeholder : "Enter your note here..." ,
67+ mode : "Mode" ,
6468 no_encryption : "No encryption (plaintext)" ,
6569 password_encryption : "Password encryption" ,
66- cipher : "Cipher " ,
70+ algorithm : "Algorithm " ,
6771 password : "Password" ,
6872 password_placeholder : "Enter password" ,
6973 generate_button : "Generate Shareable Link" ,
@@ -90,10 +94,12 @@ pub fn get_translations(lang: Language) -> Translations {
9094 url_error : "Invalid URL format" ,
9195 } ,
9296 Language :: Spanish => Translations {
97+ note : "Nota" ,
9398 note_placeholder : "Escribe tu nota aquí..." ,
99+ mode : "Modo" ,
94100 no_encryption : "Sin cifrado (texto plano)" ,
95101 password_encryption : "Cifrado con contraseña" ,
96- cipher : "Cifrado " ,
102+ algorithm : "Algoritmo " ,
97103 password : "Contraseña" ,
98104 password_placeholder : "Ingresa contraseña" ,
99105 generate_button : "Generar Enlace Compartible" ,
@@ -120,10 +126,12 @@ pub fn get_translations(lang: Language) -> Translations {
120126 url_error : "Formato de URL inválido" ,
121127 } ,
122128 Language :: Russian => Translations {
129+ note : "Заметка" ,
123130 note_placeholder : "Введите вашу заметку здесь..." ,
131+ mode : "Режим" ,
124132 no_encryption : "Без шифрования (открытый текст)" ,
125133 password_encryption : "Шифрование паролем" ,
126- cipher : "Шифр " ,
134+ algorithm : "Алгоритм " ,
127135 password : "Пароль" ,
128136 password_placeholder : "Введите пароль" ,
129137 generate_button : "Создать Ссылку для Обмена" ,
0 commit comments