Skip to content

Commit

Permalink
[TKAI-3800] feat: move from polygon to base (#69)
Browse files Browse the repository at this point in the history
* feat: change polygon copy to base on settings

* chore: generate types

* feat: add missing translations

---------

Co-authored-by: Helder Vasconcelos <[email protected]>
  • Loading branch information
ickas and hvasconcelos authored Nov 25, 2024
1 parent 7d0657d commit feb23a5
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 10 deletions.
1 change: 1 addition & 0 deletions lib/locales/br/frontend/activity-feed.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"AF10": "{{actor}} comentou na atualização {{targetProjectUpdate}} do projeto {{targetProject}}",
"AF0": "<strong>{{actor}}</strong> realizou uma nova atividade, fique de olho no feed de atividades para novidades!",
"AF1": "<strong>{{actor}}</strong> começou a seguir <strong>{{targetUser}}</strong>",
"AF2": "<strong>{{actor}}</strong> começou a seguir <strong>{{targetProject}}</strong>",
Expand Down
5 changes: 5 additions & 0 deletions lib/locales/br/frontend/api-messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"E016": "{{key}} é muito curto",
"E017": "{{key}} é muito longo",
"E701": "Falha ao excluir o comentário da atualização do projeto",
"E710": "Falha ao atualizar o mentor do Garden",
"E711": "O mentor do Garden não foi encontrado",
"E628": "O usuário não possui uma conta do Twitter vinculada",
"E629": "Falha ao obter o nome de usuário do Twitter, URL do Twitter inválida",
"E630": "O usuário não segue a Taikai no Twitter",
Expand Down
4 changes: 2 additions & 2 deletions lib/locales/br/frontend/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
"you_will_get": "Você receberá",
"balance_description_1": "O valor acima é o seu saldo atual que reflete o total do tokens $TKAI em sua carteira na TAIKAI.",
"balance_description_2": "Você pode obter tokens $TKAI através de transferências de outros usuários, nosso <1>programa de referência</1>, recompensas de hackathons na TAIKAI e depósitos. Se você quiser saber mais sobre recompensas e como elas são calculadas, leia o nosso <2>blog post</2>.",
"withdraw_description": "O saque ocorrerá na rede Polygon Network (ERC20). Enviar $TKAI para o endereço errado pode significar perder seus fundos. Em caso de dúvida, envie primeiro uma pequena quantia.",
"deposit_description": "Envie apenas $TKAI para este endereço e certifique-se de que usa a rede Polygon Network (ERC20). Por favor, não envie NFTs para este endereço.",
"withdraw_description": "O saque ocorrerá na rede Base (ERC20). Enviar $TKAI para o endereço errado pode significar perder seus fundos. Em caso de dúvida, envie primeiro uma pequena quantia.",
"deposit_description": "Envie apenas $TKAI para este endereço e certifique-se de que usa a rede Base (ERC20). Por favor, não envie NFTs para este endereço.",
"associated_account_warning": "O endereço inserido <1>{{address}}</1> está associado a <1>{{associatedAddress}}</1>.",
"history": {
"sent_to": "Enviado para {{username}}",
Expand Down
1 change: 1 addition & 0 deletions lib/locales/en/frontend/activity-feed.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"AF10": "{{actor}} commented on project update {{targetProjectUpdate}} from project {{targetProject}}",
"AF0": "<strong>{{actor}}</strong> did a new activity, keep an eye on the activity feed for news!",
"AF1": "<strong>{{actor}}</strong> started following <strong>{{targetUser}}</strong>",
"AF2": "<strong>{{actor}}</strong> started following <strong>{{targetProject}}</strong>",
Expand Down
5 changes: 5 additions & 0 deletions lib/locales/en/frontend/api-messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"E016": "{{key}} is too short",
"E017": "{{key}} is too long",
"E701": "Project Update Comment Delete Failed",
"E710": "Failed to update the garden mentor",
"E711": "Garden mentor could not be found",
"E640": "Invalid or expired token",
"S5": "TAIKAI Garden game score successfully redeemed",
"E628": "User does not have a linked twitter account",
Expand Down
4 changes: 2 additions & 2 deletions lib/locales/en/frontend/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
"you_will_get": "You will get",
"balance_description_1": "The amount above is your current balance that reflects the total of the TKAI token in your TAIKAI wallet.",
"balance_description_2": "You can get $TKAI tokens through transfers from other users, our <1>referral program</1>, rewards from TAIKAI hackathons, and deposits. If you want to learn more about rewards and how they are calculated, read our <2>blog post</2>.",
"withdraw_description": "The transfer will take place at the Polygon Network (ERC20). Sending $TKAI to the wrong address could mean losing your funds. When in doubt, send a small amount first.",
"deposit_description": "Send only $TKAI to this deposit address and ensure the network is Polygon Network (ERC20). Please do not send NFTs to this address.",
"withdraw_description": "The transfer will take place at Base network (ERC20). Sending $TKAI to the wrong address could mean losing your funds. When in doubt, send a small amount first.",
"deposit_description": "Send only $TKAI to this deposit address and ensure the network is Base network (ERC20). Please do not send NFTs to this address.",
"associated_account_warning": "The inserted address <1>{{address}}</1> is associated to <1>{{associatedAddress}}</1>.",
"history": {
"sent_to": "Sent to {{username}}",
Expand Down
1 change: 1 addition & 0 deletions lib/locales/es/frontend/activity-feed.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"AF10": "{{actor}} comentó en la actualización {{targetProjectUpdate}} del proyecto {{targetProject}}",
"AF0": "<strong>{{actor}}</strong> realizó una nueva actividad, ¡mantente atento al feed de actividad para ver las novedades!",
"AF1": "<strong>{{actor}}</strong> comenzó a seguir a <strong>{{targetUser}}</strong>",
"AF2": "<strong>{{actor}}</strong> comenzó a seguir <strong>{{targetProject}}</strong>",
Expand Down
5 changes: 5 additions & 0 deletions lib/locales/es/frontend/api-messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"E016": "{{key}} es demasiado corto",
"E017": "{{key}} es demasiado largo",
"E701": "Error al eliminar el comentario de actualización del proyecto",
"E710": "Error al actualizar el mentor del Garden",
"E711": "No se pudo encontrar el mentor del Garden",
"E628": "El usuario no tiene una cuenta de Twitter vinculada",
"E629": "Error al obtener el nombre de usuario de Twitter, URL de Twitter inválida",
"E630": "El usuario no sigue a Taikai en Twitter",
Expand Down
4 changes: 2 additions & 2 deletions lib/locales/es/frontend/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
"you_will_get": "Recibirás",
"balance_description_1": "El monto anterior es tu saldo actual, que refleja el total de tokens TKAI en tu billetera de TAIKAI",
"balance_description_2": "Puedes obtener tokens $TKAI a través de transferencias de otros usuarios, nuestro <1>programa de referidos</1>, recompensas de los hackathons de TAIKAI y depósitos. Si deseas obtener más información sobre las recompensas y cómo se calculan, lee nuestro <2>artículo en el blog</2>.",
"withdraw_description": "La transferencia se llevará a cabo en la Red Polygon (ERC20). Enviar $TKAI a una dirección incorrecta podría significar la pérdida de tus fondos. En caso de duda, envía primero una pequeña cantidad.",
"deposit_description": "Envía únicamente $TKAI a esta dirección de depósito y asegúrate de que la red sea la Red Polygon (ERC20). Por favor, no envíes NFT a esta dirección.",
"withdraw_description": "La transferencia se llevará a cabo en la red Base (ERC20). Enviar $TKAI a una dirección incorrecta podría significar la pérdida de tus fondos. En caso de duda, envía primero una pequeña cantidad.",
"deposit_description": "Envía únicamente $TKAI a esta dirección de depósito y asegúrate de que la red sea la red Base (ERC20). Por favor, no envíes NFT a esta dirección.",
"associated_account_warning": "La dirección insertada <1>{{address}}</1> está asociada a <1>{{associatedAddress}}</1>.",
"history": {
"sent_to": "Enviado a{{username}}",
Expand Down
1 change: 1 addition & 0 deletions lib/locales/fr/frontend/activity-feed.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"AF10": "{{actor}} a commenté la mise à jour {{targetProjectUpdate}} du projet {{targetProject}}",
"AF0": "<strong>{{actor}}</strong> a effectué une nouvelle activité, gardez un œil sur le fil d'activité pour les nouvelles !",
"AF1": "<strong>{{actor}}</strong> a commencé à suivre <strong>{{targetUser}}</strong>",
"AF2": "<strong>{{actor}}</strong> a commencé à suivre <strong>{{targetProject}}</strong>",
Expand Down
5 changes: 5 additions & 0 deletions lib/locales/fr/frontend/api-messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"E016": "{{key}} est trop court",
"E017": "{{key}} est trop long",
"E701": "Échec de la suppression du commentaire de mise à jour du projet",
"E710": "Échec de la mise à jour du mentor du Garden",
"E711": "Le mentor du Garden n'a pas pu être trouvé",
"E628": "L'utilisateur n'a pas de compte Twitter associé",
"E629": "Échec de l'obtention du nom d'utilisateur Twitter, URL Twitter invalide",
"E630": "L'utilisateur ne suit pas Taikai sur Twitter",
Expand Down
4 changes: 2 additions & 2 deletions lib/locales/fr/frontend/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
"you_will_get": "Vous obtiendrez",
"balance_description_1": "Le montant ci-dessus est votre solde actuel, qui reflète le total des jetons TKAI dans votre portefeuille TAIKAI.",
"balance_description_2": "Vous pouvez obtenir des jetons $TKAI par le biais de transferts d'autres utilisateurs, de notre <1>programme de parrainage</1>, de récompenses des hackathons TAIKAI et de dépôts. Si vous souhaitez en savoir plus sur les récompenses et comment elles sont calculées, lisez notre <2>article de blog</2>.",
"withdraw_description": "Le transfert se fera sur le réseau Polygon (ERC20). Envoyer des $TKAI à la mauvaise adresse pourrait signifier la perte de vos fonds. En cas de doute, envoyez d'abord un petit montant.",
"deposit_description": "Envoyez uniquement des $TKAI à cette adresse de dépôt et assurez-vous que le réseau est le réseau Polygon (ERC20). Veuillez ne pas envoyer de NFTs à cette adresse.",
"withdraw_description": "Le transfert se fera sur le réseau Base (ERC20). Envoyer des $TKAI à la mauvaise adresse pourrait signifier la perte de vos fonds. En cas de doute, envoyez d'abord un petit montant.",
"deposit_description": "Envoyez uniquement des $TKAI à cette adresse de dépôt et assurez-vous que le réseau est le réseau Base (ERC20). Veuillez ne pas envoyer de NFTs à cette adresse.",
"associated_account_warning": "L'adresse insérée <1>{{address}}</1> est associée à <1>{{associatedAddress}}</1>.",
"history": {
"sent_to": "Envoyé à {{username}}",
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/index.ts

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion lib/types/enums.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ////////////////////////////////////////////////////////////////
// DO NOT MODIFY THIS FILE DIRECTLY. IT IS GENERATED.
// ////////////////////////////////////////////////////////////////

export enum i18nKey {
ACTIVITY_FEED__AF0 = "activity-feed:AF0",
ACTIVITY_FEED__AF1 = "activity-feed:AF1",
Expand Down Expand Up @@ -1085,7 +1085,10 @@ export enum i18nKey {
COMMON__USERNAME_MIN_MAX_LENGTH = "common:username_min_max_length",
COMMON__USERNAME_PATTERN_MISMATCH = "common:username_pattern_mismatch",
COMMON__EMAIL_TYPE_MISMATCH = "common:email_type_mismatch",
COMMON__PASSWORD_VIOLATES_BYTE_SIZE = "common:password_violates_byte_size",
COMMON__PASSWORD_TOO_SHORT = "common:password_too_short",
COMMON__PASSWORD_VALUE_MISSING = "common:password_value_missing",
COMMON__PASSWORD_TOO_LONG = "common:password_too_long",
COMMON__LOGIN_TYPE_MISMATCH = "common:login_type_mismatch",
COMMON__LOGIN_ERROR = "common:login_error",
COMMON__SIGNUP_ERROR = "common:signup_error",
Expand Down Expand Up @@ -1286,6 +1289,8 @@ export enum i18nKey {
COMMON__FOLLOW_UNFOLLOW__FOLLOW_PROJECT_SUCCESS_MESSAGE = "common:follow_unfollow.follow_project_success_message",
COMMON__FOLLOW_UNFOLLOW__UNFOLLOW_USER_SUCCESS_MESSAGE = "common:follow_unfollow.unfollow_user_success_message",
COMMON__FOLLOW_UNFOLLOW__UNFOLLOW_PROJECT_SUCCESS_MESSAGE = "common:follow_unfollow.unfollow_project_success_message",
COMMON__MESSAGE_TIERS__TIERS_DESCRIPTION = "common:message_tiers.tiers_description",
COMMON__MESSAGE_TIERS__THREADS_PER_DAY = "common:message_tiers.threads_per_day",
COMMUNITY__USERNAME = "community:username",
COMMUNITY__TIME_IN_PLATFORM = "community:time_in_platform",
COMMUNITY__MOST_PROJECTS = "community:most_projects",
Expand Down

0 comments on commit feb23a5

Please sign in to comment.