Browse Source

feat: change Favorite label to Unfavorite when relay is already favorited

imwald
codytseng 8 months ago
parent
commit
fa0ab9f385
  1. 4
      src/components/SaveRelayDropdownMenu/index.tsx
  2. 3
      src/i18n/locales/ar.ts
  3. 3
      src/i18n/locales/de.ts
  4. 3
      src/i18n/locales/en.ts
  5. 3
      src/i18n/locales/es.ts
  6. 3
      src/i18n/locales/fr.ts
  7. 3
      src/i18n/locales/it.ts
  8. 3
      src/i18n/locales/ja.ts
  9. 3
      src/i18n/locales/ko.ts
  10. 3
      src/i18n/locales/pl.ts
  11. 3
      src/i18n/locales/pt-BR.ts
  12. 3
      src/i18n/locales/pt-PT.ts
  13. 3
      src/i18n/locales/ru.ts
  14. 3
      src/i18n/locales/th.ts
  15. 3
      src/i18n/locales/zh.ts

4
src/components/SaveRelayDropdownMenu/index.tsx

@ -123,7 +123,7 @@ function RelayItem({ urls }: { urls: string[] }) {
return ( return (
<DrawerMenuItem onClick={handleClick}> <DrawerMenuItem onClick={handleClick}>
{saved ? <Check /> : <Plus />} {saved ? <Check /> : <Plus />}
{t('Favorite')} {saved ? t('Unfavorite') : t('Favorite')}
</DrawerMenuItem> </DrawerMenuItem>
) )
} }
@ -131,7 +131,7 @@ function RelayItem({ urls }: { urls: string[] }) {
return ( return (
<DropdownMenuItem className="flex gap-2" onClick={handleClick}> <DropdownMenuItem className="flex gap-2" onClick={handleClick}>
{saved ? <Check /> : <Plus />} {saved ? <Check /> : <Plus />}
{t('Favorite')} {saved ? t('Unfavorite') : t('Favorite')}
</DropdownMenuItem> </DropdownMenuItem>
) )
} }

3
src/i18n/locales/ar.ts

@ -285,6 +285,7 @@ export default {
Community: 'المجتمع', Community: 'المجتمع',
Group: 'المجموعة', Group: 'المجموعة',
'Live event': 'حدث مباشر', 'Live event': 'حدث مباشر',
Article: 'مقالة' Article: 'مقالة',
Unfavorite: 'إلغاء المفضلة'
} }
} }

3
src/i18n/locales/de.ts

@ -292,6 +292,7 @@ export default {
Community: 'Community', Community: 'Community',
Group: 'Gruppe', Group: 'Gruppe',
'Live event': 'Live-Event', 'Live event': 'Live-Event',
Article: 'Artikel' Article: 'Artikel',
Unfavorite: 'Nicht mehr favorisieren'
} }
} }

3
src/i18n/locales/en.ts

@ -285,6 +285,7 @@ export default {
Community: 'Community', Community: 'Community',
Group: 'Group', Group: 'Group',
'Live event': 'Live event', 'Live event': 'Live event',
Article: 'Article' Article: 'Article',
Unfavorite: 'Unfavorite'
} }
} }

3
src/i18n/locales/es.ts

@ -290,6 +290,7 @@ export default {
Community: 'Comunidad', Community: 'Comunidad',
Group: 'Grupo', Group: 'Grupo',
'Live event': 'Evento en vivo', 'Live event': 'Evento en vivo',
Article: 'Artículo' Article: 'Artículo',
Unfavorite: 'Desfavoritar'
} }
} }

3
src/i18n/locales/fr.ts

@ -290,6 +290,7 @@ export default {
Community: 'Communauté', Community: 'Communauté',
Group: 'Groupe', Group: 'Groupe',
'Live event': 'Événement en direct', 'Live event': 'Événement en direct',
Article: 'Article' Article: 'Article',
Unfavorite: 'Ne plus aimer'
} }
} }

3
src/i18n/locales/it.ts

@ -289,6 +289,7 @@ export default {
Community: 'Comunità', Community: 'Comunità',
Group: 'Gruppo', Group: 'Gruppo',
'Live event': 'Evento dal vivo', 'Live event': 'Evento dal vivo',
Article: 'Articolo' Article: 'Articolo',
Unfavorite: 'Rimuovi dai preferiti'
} }
} }

3
src/i18n/locales/ja.ts

@ -287,6 +287,7 @@ export default {
Community: 'コミュニティ', Community: 'コミュニティ',
Group: 'グループ', Group: 'グループ',
'Live event': 'ライブイベント', 'Live event': 'ライブイベント',
Article: '記事' Article: '記事',
Unfavorite: 'お気に入り解除'
} }
} }

3
src/i18n/locales/ko.ts

@ -287,6 +287,7 @@ export default {
Community: '커뮤니티', Community: '커뮤니티',
Group: '그룹', Group: '그룹',
'Live event': '라이브 이벤트', 'Live event': '라이브 이벤트',
Article: '기사' Article: '기사',
Unfavorite: '즐겨찾기 취소'
} }
} }

3
src/i18n/locales/pl.ts

@ -288,6 +288,7 @@ export default {
Community: 'Społeczność', Community: 'Społeczność',
Group: 'Grupa', Group: 'Grupa',
'Live event': 'Wydarzenie na żywo', 'Live event': 'Wydarzenie na żywo',
Article: 'Artykuł' Article: 'Artykuł',
Unfavorite: 'Usuń z ulubionych'
} }
} }

3
src/i18n/locales/pt-BR.ts

@ -288,6 +288,7 @@ export default {
Community: 'Comunidade', Community: 'Comunidade',
Group: 'Grupo', Group: 'Grupo',
'Live event': 'Evento ao vivo', 'Live event': 'Evento ao vivo',
Article: 'Artigo' Article: 'Artigo',
Unfavorite: 'Desfavoritar'
} }
} }

3
src/i18n/locales/pt-PT.ts

@ -289,6 +289,7 @@ export default {
Community: 'Comunidade', Community: 'Comunidade',
Group: 'Grupo', Group: 'Grupo',
'Live event': 'Evento ao vivo', 'Live event': 'Evento ao vivo',
Article: 'Artigo' Article: 'Artigo',
Unfavorite: 'Desfavoritar'
} }
} }

3
src/i18n/locales/ru.ts

@ -290,6 +290,7 @@ export default {
Community: 'Сообщество', Community: 'Сообщество',
Group: 'Группа', Group: 'Группа',
'Live event': 'Живое событие', 'Live event': 'Живое событие',
Article: 'Статья' Article: 'Статья',
Unfavorite: 'Убрать из избранного'
} }
} }

3
src/i18n/locales/th.ts

@ -284,6 +284,7 @@ export default {
Community: 'ชมชน', Community: 'ชมชน',
Group: 'กลม', Group: 'กลม',
'Live event': 'เหตการณสด', 'Live event': 'เหตการณสด',
Article: 'บทความ' Article: 'บทความ',
Unfavorite: 'เลกชนชอบ'
} }
} }

3
src/i18n/locales/zh.ts

@ -285,6 +285,7 @@ export default {
Community: '社区', Community: '社区',
Group: '群组', Group: '群组',
'Live event': '直播', 'Live event': '直播',
Article: '文章' Article: '文章',
Unfavorite: '取消收藏'
} }
} }

Loading…
Cancel
Save