Skip to content

Commit

Permalink
feat: 구독 관련 faq 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
danah-kim committed Feb 19, 2025
1 parent 6ad7d5e commit 7199b70
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 2 additions & 0 deletions src/assets/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"faq": "FAQ",
"faq_apple_102543": "If your iCloud Contacts, Calendars, or Reminders won’t sync",
"faq_apple_105124": "Share and assign reminders on your iPhone or iPad",
"faq_apple_118212": "View your purchase history for the App Store and other Apple media services",
"faq_apple_118428": "If you want to cancel a subscription from Apple\n",
"guide": "Guide",
"terms": "Terms of Use",
"privacy": "Privacy Policy",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"faq": "\u3088\u304F\u3042\u308B\u8CEA\u554F",
"faq_apple_102543": "\u0069\u0043\u006C\u006F\u0075\u0064\u0020\u306E\u9023\u7D61\u5148\u3001\u30AB\u30EC\u30F3\u30C0\u30FC\u3001\u30EA\u30DE\u30A4\u30F3\u30C0\u30FC\u304C\u540C\u671F\u3055\u308C\u306A\u3044\u5834\u5408",
"faq_apple_105124": "\u0069\u0050\u0068\u006F\u006E\u0065\u0020\u3084\u0020\u0069\u0050\u0061\u0064\u0020\u3067\u30EA\u30DE\u30A4\u30F3\u30C0\u30FC\u3092\u5171\u6709\u3059\u308B\uFF0F\u5272\u308A\u5F53\u3066\u308B",
"faq_apple_118212": "App Store \u3084\u307B\u304B\u306E Apple \u30E1\u30C7\u30A3\u30A2\u30B5\u30FC\u30D3\u30B9\u306E\u8CFC\u5165\u5C65\u6B74\u3092\u78BA\u8A8D\u3059\u308B",
"faq_apple_118428": "Apple\u306E\u30B5\u30D6\u30B9\u30AF\u30EA\u30D7\u30B7\u30E7\u30F3\u3092\u89E3\u7D04\u3059\u308B\u5FC5\u8981\u304C\u3042\u308B\u5834\u5408",
"guide": "\u4F7F\u3044\u65B9\u30AC\u30A4\u30C9",
"terms": "\u5229\u7528\u898F\u7D04",
"privacy": "\u30D7\u30E9\u30A4\u30D0\u30B7\u30FC\u30DD\u30EA\u30B7\u30FC",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/locales/ko/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"faq": "\u0008\uC790\uC8FC\u0020\uBB3B\uB294\u0020\uC9C8\uBB38",
"faq_apple_102543": "\u0069\u0043\u006C\u006F\u0075\u0064\u0020\uC5F0\uB77D\uCC98\u002C\u0020\uCE98\uB9B0\uB354\u0020\uB610\uB294\u0020\uBBF8\uB9AC\u0020\uC54C\uB9BC\uC774\u0020\uB3D9\uAE30\uD654\uB418\uC9C0\u0020\uC54A\uB294\u0020\uACBD\uC6B0",
"faq_apple_105124": "\u0069\u0050\u0068\u006F\u006E\u0065\u0020\uB610\uB294\u0020\u0069\u0050\u0061\u0064\uC5D0\uC11C\u0020\uBBF8\uB9AC\u0020\uC54C\uB9BC\u0020\uACF5\uC720\u0020\uBC0F\u0020\uD560\uB2F9\uD558\uAE30",
"faq_apple_118212": "App Store \uBC0F\u0020\uAE30\uD0C0 Apple \uBBF8\uB514\uC5B4\u0020\uC11C\uBE44\uC2A4\uC758\u0020\uAD6C\uC785\u0020\uB0B4\uC5ED\u0020\uBCF4\uAE30",
"faq_apple_118428": "Apple \uAD6C\uB3C5\uC744\u0020\uCDE8\uC18C\uD558\uB824\uB294\u0020\uACBD\uC6B0",
"guide": "\uC0AC\uC6A9\uC790\u0020\uAC00\uC774\uB4DC",
"terms": "\u0008\uC0AC\uC6A9\u0020\uC57D\uAD00",
"privacy": "\uAC1C\uC778\uC815\uBCF4\u0020\uCC98\uB9AC\uBC29\uCE68",
Expand Down
34 changes: 14 additions & 20 deletions src/pages/faq/_components/FagList/FagList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,26 @@ import { matchSupportLanguage } from "@utils/i18n";

import { Bullet, FagListItem, StyledFagList } from "./FagList.styles";

const FAQ_NUMBERS = [102543, 105124, 118212, 118428];

function FagList() {
const { t, i18n } = useTranslation();
const fullLangCode = matchSupportLanguage(i18n.resolvedLanguage).fullLangCode;

return (
<StyledFagList>
<FagListItem>
<Button
variant="text"
endIcon={<Icon name="ExportOutline" width={15} height={15} />}
onClick={() => window.open(`https://support.apple.com/${fullLangCode}/102543`)}
>
<Bullet />
{t("faq_apple_102543")}
</Button>
</FagListItem>
<FagListItem>
<Button
variant="text"
endIcon={<Icon name="ExportOutline" width={15} height={15} />}
onClick={() => window.open(`https://support.apple.com/${fullLangCode}/105124`)}
>
<Bullet />
{t("faq_apple_105124")}
</Button>
</FagListItem>
{FAQ_NUMBERS.map((faqNumber) => (
<FagListItem key={`faq-${faqNumber}`}>
<Button
variant="text"
endIcon={<Icon name="ExportOutline" width={15} height={15} />}
onClick={() => window.open(`https://support.apple.com/${fullLangCode}/${faqNumber}`)}
>
<Bullet />
{t(`faq_apple_${faqNumber}`)}
</Button>
</FagListItem>
))}
</StyledFagList>
);
}
Expand Down

0 comments on commit 7199b70

Please sign in to comment.