Skip to content

Commit

Permalink
Reveal new achievements (#6059)
Browse files Browse the repository at this point in the history
  • Loading branch information
megrogan authored Jul 18, 2024
1 parent 8b7e39a commit a44cb88
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 3 deletions.
21 changes: 20 additions & 1 deletion frontend/app/src/components/home/profile/LearnToEarn.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@
"upgraded_to_diamond",
"set_display_name",
"upgrade_to_gold_diamond",
"sent_text",
"reacted_to_message",
"started_call",
"sent_file",
"sent_image",
"sent_poll",
"sent_crypto",
"sent_video",
"sent_audio",
"sent_giphy",
"sent_prize",
"sent_meme",
"sent_swap_offer",
"quote_replied",
"replied_in_thread",
"edited_message",
"deleted_message",
"tipped_message",
"forwarded_message",
]);
$: globalState = client.globalStateStore;
Expand All @@ -45,7 +64,7 @@

<Overlay dismissible>
<ModalContent closeIcon on:close>
<span class="header" slot="header"> Learn to earn </span>
<span class="header" slot="header"><Translatable resourceKey={i18nKey("learnToEarn.title")} /></span>

<div class="body" slot="body">
{#each achieved as achievement}
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "建议你的第一个翻译",
"swapped_from_wallet": "从钱包中兑换了第一个代币",
"tipped_message": "已给小费的第一条消息",
"title": "成就",
"translation_accepted": "你的第一个翻译是否被接受",
"upgrade_to_gold_diamond": "升级为终身钻石会员",
"upgraded_to_diamond": "升级为钻石会员",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "Ihre erste Übersetzung wurde vorgeschlagen",
"swapped_from_wallet": "Dein erstes Token aus der Wallet getauscht",
"tipped_message": "Erste Nachricht mit Trinkgeld",
"title": "Erfolge",
"translation_accepted": "Ihre erste Übersetzung wurde akzeptiert",
"upgrade_to_gold_diamond": "Upgrade auf Lifetime Diamond-Mitgliedschaft",
"upgraded_to_diamond": "Upgrade auf Diamond-Mitgliedschaft",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "Suggested your fiurst translation",
"swapped_from_wallet": "Swapped your first token from the wallet",
"tipped_message": "Tipped first message",
"title": "Achievements",
"translation_accepted": "Had your first translation accepted",
"upgrade_to_gold_diamond": "Upgrade to Lifetime Diamond membership",
"upgraded_to_diamond": "Upgraded to Diamond membership",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "Sugirió su primera traducción.",
"swapped_from_wallet": "Cambiaste tu primer token de la billetera",
"tipped_message": "Primer mensaje con propina",
"title": "Logros",
"translation_accepted": "¿Han aceptado su primera traducción?",
"upgrade_to_gold_diamond": "Actualice a una membresía Lifetime Diamond",
"upgraded_to_diamond": "Actualizado a membresía Diamante",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "Vous avez suggéré votre première traduction",
"swapped_from_wallet": "Vous avez échangé votre premier jeton du portefeuille",
"tipped_message": "Premier message averti",
"title": "Réalisations",
"translation_accepted": "Votre première traduction a-t-elle été acceptée",
"upgrade_to_gold_diamond": "Passer à l'adhésion Diamond à vie",
"upgraded_to_diamond": "Surclassé en abonnement Diamant",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "आपका पहला अनुवाद सुझाया गया",
"swapped_from_wallet": "वॉलेट से अपना पहला टोकन स्वैप किया",
"tipped_message": "पहला संदेश टिप किया गया",
"title": "उपलब्धियों",
"translation_accepted": "क्या आपका पहला अनुवाद स्वीकार किया गया था?",
"upgrade_to_gold_diamond": "लाइफटाइम डायमंड सदस्यता में अपग्रेड करें",
"upgraded_to_diamond": "डायमंड सदस्यता में अपग्रेड किया गया",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "Suggerita la tua prima traduzione",
"swapped_from_wallet": "Hai scambiato il tuo primo token dal portafoglio",
"tipped_message": "Primo messaggio con mancia",
"title": "Risultati",
"translation_accepted": "La tua prima traduzione è stata accettata",
"upgrade_to_gold_diamond": "Passa all'abbonamento Lifetime Diamond",
"upgraded_to_diamond": "Upgrade all'abbonamento Diamond",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/iw.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "הציע את התרגום הראשון שלך",
"swapped_from_wallet": "החלפת את האסימון הראשון שלך מהארנק",
"tipped_message": "הודעה ראשונה עם טיפ",
"title": "הישגים",
"translation_accepted": "התרגום הראשון שלך התקבל",
"upgrade_to_gold_diamond": "שדרג לחברות Lifetime Diamond",
"upgraded_to_diamond": "שודרג לחברות Diamond",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "最初の翻訳を提案しました",
"swapped_from_wallet": "ウォレットから最初のトークンを交換しました",
"tipped_message": "最初のメッセージにチップを渡す",
"title": "実績",
"translation_accepted": "最初の翻訳が受け入れられた",
"upgrade_to_gold_diamond": "生涯ダイヤモンド会員にアップグレード",
"upgraded_to_diamond": "ダイヤモンド会員にアップグレード",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "Zasugerowałem Twoje pierwsze tłumaczenie",
"swapped_from_wallet": "Wymieniłeś swój pierwszy token z portfela",
"tipped_message": "Pierwsza wiadomość z napiwkiem",
"title": "Osiągnięcia",
"translation_accepted": "Czy Twoje pierwsze tłumaczenie zostało zaakceptowane",
"upgrade_to_gold_diamond": "Przejdź na członkostwo Lifetime Diamond",
"upgraded_to_diamond": "Ulepszono do członkostwa Diamentowego",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "Предложил ваш первый перевод",
"swapped_from_wallet": "Выменил свой первый токен из кошелька",
"tipped_message": "Отправлено первое сообщение",
"title": "Достижения",
"translation_accepted": "Был ли принят ваш первый перевод",
"upgrade_to_gold_diamond": "Повысьте статус до статуса Lifetime Diamond",
"upgraded_to_diamond": "Повышен до уровня Diamond",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "Запропонував свій перший переклад",
"swapped_from_wallet": "Обміняв свій перший жетон із гаманця",
"tipped_message": "Підказане перше повідомлення",
"title": "Досягнення",
"translation_accepted": "Ваш перший переклад прийнято",
"upgrade_to_gold_diamond": "Оновлення до довічного діамантового членства",
"upgraded_to_diamond": "Оновлено до Діамантового членства",
Expand Down
1 change: 1 addition & 0 deletions frontend/app/src/i18n/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
"suggested_translation": "Đã đề xuất bản dịch đầu tiên của bạn",
"swapped_from_wallet": "Hoán đổi token đầu tiên của bạn từ ví",
"tipped_message": "Tin nhắn đầu tiên được tip",
"title": "Thành tựu",
"translation_accepted": "Bản dịch đầu tiên của bạn đã được chấp nhận chưa",
"upgrade_to_gold_diamond": "Nâng cấp lên thành viên Lifetime Diamond",
"upgraded_to_diamond": "Được nâng cấp lên thành viên Kim cương",
Expand Down
4 changes: 2 additions & 2 deletions frontend/openchat-shared/src/domain/chit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ export const achievements = [
"forwarded_message",
"tipped_message",
"sent_image",
"started_call",
"joined_call",
"sent_file",
"sent_poll",
"sent_crypto",
Expand All @@ -46,6 +44,8 @@ export const achievements = [
"sent_giphy",
"sent_prize",
"sent_meme",
"started_call",
"joined_call",
"quote_replied",
"replied_in_thread",
"changed_theme",
Expand Down

0 comments on commit a44cb88

Please sign in to comment.