Skip to content

Commit

Permalink
4032 - add user i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
minotogna committed Dec 17, 2024
1 parent a5a810b commit a05c56c
Show file tree
Hide file tree
Showing 18 changed files with 142 additions and 158 deletions.
9 changes: 3 additions & 6 deletions src/i18n/resources/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import * as nationalDataPoint from './ar/nationalDataPoint.json'
import * as other from './ar/other.json'
import * as statisticalFactsheets from './ar/statisticalFactsheets.json'
import * as uc from './ar/uc.json'
import * as user from './ar/user.json'

export const arTranslation = {
admin,
Expand All @@ -36,13 +37,9 @@ export const arTranslation = {
landing,
login,
nationalDataPoint,

page: {
assessmentSection,
},

page: { assessmentSection },
statisticalFactsheets,
uc,

user,
...other,
}
20 changes: 0 additions & 20 deletions src/i18n/resources/ar/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,26 +643,6 @@
"thousandPersons": "1000 شخص",
"tonnesPerHa": "طن/هـ"
},
"user": {
"resetPasswordEmail": {
"htmlMessage": "عزيزي {{user}}\n<br/><br/>\nتلقينا طلباً بإعادة ضبط كلمة المرور إلى حساب تقييم الموارد الحرجية الخاص بك. \n<br/>\nإن لم تقدم هذا الطلب، يمكنك تجاهل هذه الرسالة بأمان.\n<br/><br/><br/>\n<a href=\"{{link}}\" style=\"text-decoration: none; background-color: #0098a6;border: 2px solid #00988F;color: white;font-size: 14px;font-weight: 700; padding: 10px 50px;\">Click here to reset your password</a>\n<br/><br/><br/>\nThanks,\n<br/>\nفريق تقييم الموارد الحرجية [email protected]\n<br/>\n{{- url}}\n ",
"subject": "منصة تقييم الموارد الحرجية، إعادة ضبط كلمة المرور",
"textMessage": "عزيزي {{user}}\n\nتلقينا طلباً بإعادة ضبط كلمة المرور إلى حساب تقييم الموارد الحرجية الخاص بك. إذا لم تقدم هذا الطلب يمكنك تجاهل هذه الرسالة بأمان.\nانقر على الرابط التالي لإعادة ضبط كلمة المرور{{- link}}\n\nClick the following link to reset your password\n{{- link}}\n\n\nشكراً\nفريق تقييم الموارد الحرجية [email protected]\n{{- url}}"
},
"roles": {
"ADMINISTRATOR": "مدير",
"ALTERNATE_NATIONAL_CORRESPONDENT": "مراسل وطني بديل",
"COLLABORATOR": "متعاون",
"NATIONAL_CORRESPONDENT": "مراسل وطني",
"REVIEWER": "مُراجع",
"VIEWER": "مشاهد",
"alternateNationalCorrespondent_plural": "المراسلون الوطنيون المناوبون",
"collaborator_plural": "المتعاونين",
"nationalCorrespondent_plural": "المراسلون الوطنيون",
"noRole": "",
"reviewer_plural": "المراجعين"
}
},
"userChat": {
"cancel": "إلغاء",
"chatHeader": "رسائل مع {{user}}",
Expand Down
20 changes: 20 additions & 0 deletions src/i18n/resources/ar/user.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"resetPasswordEmail": {
"htmlMessage": "عزيزي {{user}}\n<br/><br/>\nتلقينا طلباً بإعادة ضبط كلمة المرور إلى حساب تقييم الموارد الحرجية الخاص بك. \n<br/>\nإن لم تقدم هذا الطلب، يمكنك تجاهل هذه الرسالة بأمان.\n<br/><br/><br/>\n<a href=\"{{link}}\" style=\"text-decoration: none; background-color: #0098a6;border: 2px solid #00988F;color: white;font-size: 14px;font-weight: 700; padding: 10px 50px;\">Click here to reset your password</a>\n<br/><br/><br/>\nThanks,\n<br/>\nفريق تقييم الموارد الحرجية [email protected]\n<br/>\n{{- url}}\n ",
"subject": "منصة تقييم الموارد الحرجية، إعادة ضبط كلمة المرور",
"textMessage": "عزيزي {{user}}\n\nتلقينا طلباً بإعادة ضبط كلمة المرور إلى حساب تقييم الموارد الحرجية الخاص بك. إذا لم تقدم هذا الطلب يمكنك تجاهل هذه الرسالة بأمان.\nانقر على الرابط التالي لإعادة ضبط كلمة المرور{{- link}}\n\nClick the following link to reset your password\n{{- link}}\n\n\nشكراً\nفريق تقييم الموارد الحرجية [email protected]\n{{- url}}"
},
"roles": {
"ADMINISTRATOR": "مدير",
"ALTERNATE_NATIONAL_CORRESPONDENT": "مراسل وطني بديل",
"ALTERNATE_NATIONAL_CORRESPONDENT_other": "المراسلون الوطنيون المناوبون",
"COLLABORATOR": "متعاون",
"NATIONAL_CORRESPONDENT": "مراسل وطني",
"NATIONAL_CORRESPONDENT_other": "المراسلون الوطنيون",
"REVIEWER": "مُراجع",
"REVIEWER_plural": "المراجعين",
"VIEWER": "مشاهد",
"COLLABORATOR_other": "المتعاونين",
"noRole": ""
}
}
9 changes: 3 additions & 6 deletions src/i18n/resources/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import * as other from './en/other.json'
import * as panEuropean from './en/panEuropean/panEuropean.json'
import * as statisticalFactsheets from './en/statisticalFactsheets.json'
import * as uc from './en/uc.json'
import * as user from './en/user.json'
import * as validation from './en/validation.json'

export const enTranslation = {
Expand All @@ -38,15 +39,11 @@ export const enTranslation = {
landing,
login,
nationalDataPoint,

page: {
assessmentSection,
},

page: { assessmentSection },
panEuropean,
statisticalFactsheets,
uc,
user,
validation,

...other,
}
22 changes: 0 additions & 22 deletions src/i18n/resources/en/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,28 +643,6 @@
"thousandPersons": "1 000 persons",
"tonnesPerHa": "tonnes/ha"
},
"user": {
"resetPasswordEmail": {
"htmlMessage": "Dear {{user}}\n<br/><br/>\nWe have received a request to reset your password for your FRA account. \n<br/>\nIf you didn't make this request, you can safely ignore this email.\n<br/><br/><br/>\n<a href=\"{{link}}\" style=\"text-decoration: none; background-color: #0098a6;border: 2px solid #00988F;color: white;font-size: 14px;font-weight: 700; padding: 10px 50px;\">Click here to reset your password</a>\n<br/><br/><br/>\nThanks,\n<br/>\nThe FRA team [email protected]\n<br/>\n{{- url}}\n ",
"subject": "FRA platform - Reset password",
"textMessage": "Dear {{user}}\n\nWe have received a request to reset your password for your FRA account. \nIf you didn't make this request, you can safely ignore this email.\n\nClick the following link to reset your password\n{{- link}}\n\n\nThanks,\nThe FRA team [email protected]\n{{- url}}"
},
"roles": {
"ADMINISTRATOR": "Administrator",
"ADMINISTRATOR_other": "Administrators",
"ALTERNATE_NATIONAL_CORRESPONDENT": "Alternate national correspondent",
"ALTERNATE_NATIONAL_CORRESPONDENT_other": "Alternate national correspondents",
"COLLABORATOR": "Collaborator",
"COLLABORATOR_other": "Collaborators",
"NATIONAL_CORRESPONDENT": "National correspondent",
"NATIONAL_CORRESPONDENT_other": "National correspondents",
"REVIEWER": "Reviewer",
"REVIEWER_other": "Reviewers",
"VIEWER": "Viewer",
"VIEWER_other": "Viewers",
"noRole": ""
}
},
"userChat": {
"cancel": "Cancel",
"chatHeader": "Messages with {{user}}",
Expand Down
22 changes: 22 additions & 0 deletions src/i18n/resources/en/user.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"resetPasswordEmail": {
"htmlMessage": "Dear {{user}}\n<br/><br/>\nWe have received a request to reset your password for your FRA account. \n<br/>\nIf you didn't make this request, you can safely ignore this email.\n<br/><br/><br/>\n<a href=\"{{link}}\" style=\"text-decoration: none; background-color: #0098a6;border: 2px solid #00988F;color: white;font-size: 14px;font-weight: 700; padding: 10px 50px;\">Click here to reset your password</a>\n<br/><br/><br/>\nThanks,\n<br/>\nThe FRA team [email protected]\n<br/>\n{{- url}}\n ",
"subject": "FRA platform - Reset password",
"textMessage": "Dear {{user}}\n\nWe have received a request to reset your password for your FRA account. \nIf you didn't make this request, you can safely ignore this email.\n\nClick the following link to reset your password\n{{- link}}\n\n\nThanks,\nThe FRA team [email protected]\n{{- url}}"
},
"roles": {
"ADMINISTRATOR": "Administrator",
"ADMINISTRATOR_other": "Administrators",
"ALTERNATE_NATIONAL_CORRESPONDENT": "Alternate national correspondent",
"ALTERNATE_NATIONAL_CORRESPONDENT_other": "Alternate national correspondents",
"COLLABORATOR": "Collaborator",
"COLLABORATOR_other": "Collaborators",
"NATIONAL_CORRESPONDENT": "National correspondent",
"NATIONAL_CORRESPONDENT_other": "National correspondents",
"REVIEWER": "Reviewer",
"REVIEWER_other": "Reviewers",
"VIEWER": "Viewer",
"VIEWER_other": "Viewers",
"noRole": ""
}
}
9 changes: 3 additions & 6 deletions src/i18n/resources/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import * as nationalDataPoint from './es/nationalDataPoint.json'
import * as other from './es/other.json'
import * as statisticalFactsheets from './es/statisticalFactsheets.json'
import * as uc from './es/uc.json'
import * as user from './es/user.json'

export const esTranslation = {
admin,
Expand All @@ -32,13 +33,9 @@ export const esTranslation = {
landing,
login,
nationalDataPoint,

page: {
assessmentSection,
},

page: { assessmentSection },
statisticalFactsheets,
uc,

user,
...other,
}
20 changes: 0 additions & 20 deletions src/i18n/resources/es/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,26 +643,6 @@
"thousandPersons": "1 000 personas",
"tonnesPerHa": "toneladas / ha"
},
"user": {
"resetPasswordEmail": {
"htmlMessage": "Estimado/a {{user}}\n<br/><br/>\nHemos recibido una solicitud para restablecer la contraseña de su cuenta de FRA. \n<br/>\nSi no ha realizado esta solicitud, puede ignorar este correo electrónico.\n<br/><br/><br/>\n<a href=\"{{link}}\" style=\"text-decoration: none; background-color: #0098a6;border: 2px solid #00988F;color: white;font-size: 14px;font-weight: 700; padding: 10px 50px;\">Haga clic aquí para restablecer su contraseña</a>\n<br/><br/><br/>\nGracias,\n<br/>\nEl equipo de FRA fra@fao. rg\n<br/>\n{{- url}}\n ",
"subject": "Plataforma FRA - Restablecer contraseña",
"textMessage": "Estimado/a {{user}}\n\nHemos recibido una solicitud para restablecer la contraseña de su cuenta de FRA.\nSi usted no hizo esta solicitud, puede ignorar este correo electrónico.\n\nHaga clic en el siguiente enlace para restablecer su contraseña:\n{{- link}}\n\nGracias,\nEl equipo de FRA [email protected]\n{{- url}}"
},
"roles": {
"ADMINISTRATOR": "Administrador",
"ALTERNATE_NATIONAL_CORRESPONDENT": "Corresponsal Nacional alterno",
"COLLABORATOR": "Colaborador",
"NATIONAL_CORRESPONDENT": "Corresponsal Nacional",
"REVIEWER": "Evaluador",
"VIEWER": "Observador",
"alternateNationalCorrespondent_plural": "Corresponsales nacionales suplentes",
"collaborator_plural": "Colaboradores",
"nationalCorrespondent_plural": "Corresponsales nacionales",
"noRole": "",
"reviewer_plural": "Revisores"
}
},
"userChat": {
"cancel": "Cancelar",
"chatHeader": "Mensajes con {{user}}",
Expand Down
21 changes: 21 additions & 0 deletions src/i18n/resources/es/user.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"resetPasswordEmail": {
"htmlMessage": "Estimado/a {{user}}\n<br/><br/>\nHemos recibido una solicitud para restablecer la contraseña de su cuenta de FRA. \n<br/>\nSi no ha realizado esta solicitud, puede ignorar este correo electrónico.\n<br/><br/><br/>\n<a href=\"{{link}}\" style=\"text-decoration: none; background-color: #0098a6;border: 2px solid #00988F;color: white;font-size: 14px;font-weight: 700; padding: 10px 50px;\">Haga clic aquí para restablecer su contraseña</a>\n<br/><br/><br/>\nGracias,\n<br/>\nEl equipo de FRA fra@fao. rg\n<br/>\n{{- url}}\n ",
"subject": "Plataforma FRA - Restablecer contraseña",
"textMessage": "Estimado/a {{user}}\n\nHemos recibido una solicitud para restablecer la contraseña de su cuenta de FRA.\nSi usted no hizo esta solicitud, puede ignorar este correo electrónico.\n\nHaga clic en el siguiente enlace para restablecer su contraseña:\n{{- link}}\n\nGracias,\nEl equipo de FRA [email protected]\n{{- url}}"
},
"roles": {
"ADMINISTRATOR": "Administrador",
"ALTERNATE_NATIONAL_CORRESPONDENT": "Corresponsal Nacional alterno",
"ALTERNATE_NATIONAL_CORRESPONDENT_other": "Corresponsales nacionales suplentes",
"COLLABORATOR": "Colaborador",
"COLLABORATOR_other": "Colaboradores",
"NATIONAL_CORRESPONDENT": "Corresponsal Nacional",
"NATIONAL_CORRESPONDENT_other": "Corresponsales nacionales",
"REVIEWER": "Evaluador",
"REVIEWER_other": "Revisores",
"VIEWER": "Observador",
"VIEWER_other": "Observadores",
"noRole": ""
}
}
9 changes: 3 additions & 6 deletions src/i18n/resources/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import * as nationalDataPoint from './fr/nationalDataPoint.json'
import * as other from './fr/other.json'
import * as statisticalFactsheets from './fr/statisticalFactsheets.json'
import * as uc from './fr/uc.json'
import * as user from './fr/user.json'

export const frTranslation = {
admin,
Expand All @@ -34,13 +35,9 @@ export const frTranslation = {
landing,
login,
nationalDataPoint,

page: {
assessmentSection,
},

page: { assessmentSection },
statisticalFactsheets,
uc,

user,
...other,
}
20 changes: 0 additions & 20 deletions src/i18n/resources/fr/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,26 +643,6 @@
"thousandPersons": "1 000 personnes",
"tonnesPerHa": "tonnes / ha"
},
"user": {
"resetPasswordEmail": {
"htmlMessage": "Cher/Chère {{user}}\n<br/><br/>\nNous avons reçu une demande pour réinitialiser votre mot de passe pour votre compte FRA.\n<br/>\nSi vous n'avez pas effectué cette demande, vous pouvez ignorer cet e-mail en toute sécurité.\n<br/><br/><br/>\n<a href=\"{{link}}\" style=\"text-decoration: none; background-color: #0098a6;border: 2px solid #00988F;color: white;font-size: 14px;font-weight: 700; padding: 10px 50px;\">Cliquez ici pour réinitialiser votre mot de passe</a>\n<br/><br/><br/>\nMerci,\n<br/>\nL'équipe FRA [email protected]\n<br/>\n{{- url}}\n ",
"subject": "Plateforme FRA - Réinitialiser le mot de passe",
"textMessage": "Cher/Chère {{user}}\n\nNous avons reçu une demande pour réinitialiser votre mot de passe pour votre compte FRA.\nSi vous n'avez pas effectué cette demande, vous pouvez ignorer cet e-mail en toute sécurité.\n\nCliquez ici pour réinitialiser votre mot de passe\n{{- link}}\n\nMerci,\nL'équipe FRA [email protected]\n{{- url}}"
},
"roles": {
"ADMINISTRATOR": "Administrateur",
"ALTERNATE_NATIONAL_CORRESPONDENT": "Correspondant national suppléant",
"COLLABORATOR": "Collaborateur",
"NATIONAL_CORRESPONDENT": "Correspondant national",
"REVIEWER": "Examinateur",
"VIEWER": "Visionneur",
"alternateNationalCorrespondent_plural": "Correspondants nationaux suppléants",
"collaborator_plural": "Collaborateurs",
"nationalCorrespondent_plural": "Correspondants nationaux",
"noRole": "",
"reviewer_plural": "Examinateurs"
}
},
"userChat": {
"cancel": "Effacer",
"chatHeader": "Échange de messages avec {{user}}",
Expand Down
21 changes: 21 additions & 0 deletions src/i18n/resources/fr/user.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"resetPasswordEmail": {
"htmlMessage": "Cher/Chère {{user}}\n<br/><br/>\nNous avons reçu une demande pour réinitialiser votre mot de passe pour votre compte FRA.\n<br/>\nSi vous n'avez pas effectué cette demande, vous pouvez ignorer cet e-mail en toute sécurité.\n<br/><br/><br/>\n<a href=\"{{link}}\" style=\"text-decoration: none; background-color: #0098a6;border: 2px solid #00988F;color: white;font-size: 14px;font-weight: 700; padding: 10px 50px;\">Cliquez ici pour réinitialiser votre mot de passe</a>\n<br/><br/><br/>\nMerci,\n<br/>\nL'équipe FRA [email protected]\n<br/>\n{{- url}}\n ",
"subject": "Plateforme FRA - Réinitialiser le mot de passe",
"textMessage": "Cher/Chère {{user}}\n\nNous avons reçu une demande pour réinitialiser votre mot de passe pour votre compte FRA.\nSi vous n'avez pas effectué cette demande, vous pouvez ignorer cet e-mail en toute sécurité.\n\nCliquez ici pour réinitialiser votre mot de passe\n{{- link}}\n\nMerci,\nL'équipe FRA [email protected]\n{{- url}}"
},
"roles": {
"ADMINISTRATOR": "Administrateur",
"ALTERNATE_NATIONAL_CORRESPONDENT": "Correspondant national suppléant",
"ALTERNATE_NATIONAL_CORRESPONDENT_other": "Correspondants nationaux suppléants",
"COLLABORATOR": "Collaborateur",
"COLLABORATOR_other": "Collaborateurs",
"NATIONAL_CORRESPONDENT": "Correspondant national",
"NATIONAL_CORRESPONDENT_other": "Correspondants nationaux",
"REVIEWER": "Examinateur",
"REVIEWER_other": "Examinateurs",
"VIEWER": "Visionneur",
"VIEWER_other": "Visionneurs",
"noRole": ""
}
}
9 changes: 3 additions & 6 deletions src/i18n/resources/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import * as nationalDataPoint from './ru/nationalDataPoint.json'
import * as other from './ru/other.json'
import * as statisticalFactsheets from './ru/statisticalFactsheets.json'
import * as uc from './ru/uc.json'
import * as user from './ru/user.json'

export const ruTranslation = {
admin,
Expand All @@ -34,13 +35,9 @@ export const ruTranslation = {
landing,
login,
nationalDataPoint,

page: {
assessmentSection,
},

page: { assessmentSection },
statisticalFactsheets,
uc,

user,
...other,
}
20 changes: 0 additions & 20 deletions src/i18n/resources/ru/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,26 +643,6 @@
"thousandPersons": "1 000 человек",
"tonnesPerHa": "тонн/га"
},
"user": {
"resetPasswordEmail": {
"htmlMessage": "Уважаемый (ая) {{user}}\n<br/><br/>\nМы получили запрос на сброс пароля для вашей учетной записи в FRA. \n<br/>\nЕсли вы не делали этого запроса, вы можете проигнорировать это письмо.\n<br/><br/><br/>\n<a href=\"{{link}}\" style=\"text-decoration: none; background-color: #0098a6;border: 2px solid #00988F;color: white;font-size: 14px;font-weight: 700; padding: 10px 50px;\">Нажмите здесь, чтобы сбросить свой пароль</a>\n<br/><br/><br/>\nСпасибо,\n<br/>\nГруппа по ОЛР [email protected]\n<br/>\n{{- url}}\n ",
"subject": "Платформа ОЛР - сменить пароль",
"textMessage": "Уважаемый (ая) {{user}}\n\nМы получили запрос на сброс пароля для вашей учетной записи в FRA. \nЕсли вы не делали этого запроса, вы можете проигнорировать это письмо.\n\nНажмите здесь, чтобы сбросить свой пароль\n{{- link}}\n\n\nСпасибо,\nГруппа по ОЛР [email protected]\n{{- url}}"
},
"roles": {
"ADMINISTRATOR": "Администратор",
"ALTERNATE_NATIONAL_CORRESPONDENT": "Помощник национального корреспондента",
"COLLABORATOR": "Сотрудник",
"NATIONAL_CORRESPONDENT": "Национальный корреспондент",
"REVIEWER": "Рецензент",
"VIEWER": "Наблюдатель",
"alternateNationalCorrespondent_plural": "Заместители национального корреспондента",
"collaborator_plural": "Сотрудники",
"nationalCorrespondent_plural": "Национальные корреспонденты",
"noRole": "",
"reviewer_plural": "Рецензенты"
}
},
"userChat": {
"cancel": "Отмена",
"chatHeader": "Сообщения от {{user}}",
Expand Down
Loading

0 comments on commit a05c56c

Please sign in to comment.