commit a295d66bc501c3c54357776c72049fa3dc6fc7a9
parent ad1b86abf81554c0e80f863e8696e8d6cb0c9317
Author: Daniel D’Aquino <daniel@daquino.me>
Date: Wed, 6 Mar 2024 19:18:55 +0000
Add more information about supported languages
This commit adds more information about languages supported for
translation on Damus Purple.
Information is based on https://support.deepl.com/hc/en-us/articles/360019925219-Languages-included-in-DeepL-Pro
Closes: https://github.com/damus-io/damus/issues/1989
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
3 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/content/compiled-locales/en.json b/content/compiled-locales/en.json
@@ -521,6 +521,18 @@
"value": "Can I simply donate to Damus?"
}
],
+ "purple.faq.9.a": [
+ {
+ "type": 0,
+ "value": "Currently we support Arabic*, Bulgarian, Chinese*, Czech, Danish, Dutch, English*, Estonian, Finnish, French, German, Greek, Hungarian, Indonesian, Italian, Japanese, Korean, Latvian, Lithuanian, Norwegian*, Polish, Portuguese*, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Turkish, and Ukrainian.\n\n * Limitations apply"
+ }
+ ],
+ "purple.faq.9.q": [
+ {
+ "type": 0,
+ "value": "What languages are supported by the translator?"
+ }
+ ],
"purple.faq.headline": [
{
"type": 0,
@@ -575,6 +587,12 @@
"value": "Learn more"
}
],
+ "purple.hero.renew": [
+ {
+ "type": 0,
+ "value": "Already a member? Click here to renew!"
+ }
+ ],
"roles.brand-ambassador": [
{
"type": 0,
diff --git a/content/locales/en.json b/content/locales/en.json
@@ -254,6 +254,12 @@
"purple.faq.8.q": {
"string": "Can I simply donate to Damus?"
},
+ "purple.faq.9.a": {
+ "string": "Currently we support Arabic*, Bulgarian, Chinese*, Czech, Danish, Dutch, English*, Estonian, Finnish, French, German, Greek, Hungarian, Indonesian, Italian, Japanese, Korean, Latvian, Lithuanian, Norwegian*, Polish, Portuguese*, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Turkish, and Ukrainian.\n\n * Limitations apply"
+ },
+ "purple.faq.9.q": {
+ "string": "What languages are supported by the translator?"
+ },
"purple.faq.headline": {
"string": "Frequent Questions"
},
@@ -281,6 +287,9 @@
"purple.hero.learn-more": {
"string": "Learn more"
},
+ "purple.hero.renew": {
+ "string": "Already a member? Click here to renew!"
+ },
"roles.brand-ambassador": {
"string": "Brand Ambassador"
},
diff --git a/src/components/sections/PurpleFAQ.tsx b/src/components/sections/PurpleFAQ.tsx
@@ -24,6 +24,10 @@ export function PurpleFAQ({ className }: { className?: string }) {
answer: intl.formatMessage({ id: "purple.faq.4.a", defaultMessage: "Currently we offer automatic translations of posts. We are working to add more features as soon as possible." }),
},
{
+ question: intl.formatMessage({ id: "purple.faq.9.q", defaultMessage: "What languages are supported by the translator?" }),
+ answer: intl.formatMessage({ id: "purple.faq.9.a", defaultMessage: "Currently we support Arabic*, Bulgarian, Chinese*, Czech, Danish, Dutch, English*, Estonian, Finnish, French, German, Greek, Hungarian, Indonesian, Italian, Japanese, Korean, Latvian, Lithuanian, Norwegian*, Polish, Portuguese*, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Turkish, and Ukrainian.\n\n * Limitations apply" }),
+ },
+ {
question: intl.formatMessage({ id: "purple.faq.5.q", defaultMessage: "How much does it cost?" }),
answer: intl.formatMessage({ id: "purple.faq.5.a", defaultMessage: "Please see the section below for pricing." }),
},
@@ -64,7 +68,7 @@ export function PurpleFAQ({ className }: { className?: string }) {
{faq.map((item, index) => (
<AccordionItem value={`item-${index}`} key={index}>
<AccordionTrigger>{item.question}</AccordionTrigger>
- <AccordionContent>
+ <AccordionContent className="whitespace-pre-line">
{item.answer}
</AccordionContent>
</AccordionItem>