Skip to content

community i18n #291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/typescriptlang-org/src/copy/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import { headCopy } from "./en/head-seo"
import { docCopy } from "./en/documentation"
import { indexCopy } from "./en/index"
import { playCopy } from "./en/playground"
import { comCopy } from "./en/community"

export const messages = {
...navCopy,
...docCopy,
...headCopy,
...indexCopy,
...playCopy,
...comCopy,
}

export const lang = defineMessages(messages)
Expand Down
30 changes: 30 additions & 0 deletions packages/typescriptlang-org/src/copy/en/community.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
export const comCopy = {
com_layout_title: "How to set up TypeScript",
com_layout_description: "",
com_headline: "Connect with us",
com_connect_online: "Connect online",
com_connect_online_description:
" Tell us what’s working well, what you want to see added or improved, and find out about new updates.",
com_online_stack_overflow_desc:
"Engage with your peers and ask questions about Typescript on",
com_online_stack_overflow_tag: "using the tag",
com_online_discord_header: "Chat",
com_online_discord_desc:
"Chat with other TypeScript users in the TypeScript Community Chat.",
com_online_github_desc: "Found a bug, or want to give us feedback?",
com_online_github_href: "Tell us on github",
com_online_twitter_desc: "Stay up to date. Follow us on Twitter",
com_online_blog_desc:
"Learn about the latest TypeScript developments via our",
com_online_typed_desc: "TypeScript definition files",
com_online_typed_href: "Browse the thousands of",
com_online_typed_available_for:
"available for common libraries and frameworks.",
com_person: "Connect in person",
com_conferences: "Conferences",
com_conferences_alt_img: "logo of ",
nav_: {
id: "foo",
defaultMessage: "foo",
},
}
2 changes: 2 additions & 0 deletions packages/typescriptlang-org/src/copy/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { headCopy } from "./es/head-seo"
import { docCopy } from "./en/documentation"
import { indexCopy } from "./en/index"
import { playCopy } from "./es/playground"
import { comCopy } from "./en/community"

export const lang: Copy = defineMessages({
...englishMessages,
Expand All @@ -13,4 +14,5 @@ export const lang: Copy = defineMessages({
...headCopy,
...indexCopy,
...playCopy,
...comCopy,
})
2 changes: 2 additions & 0 deletions packages/typescriptlang-org/src/copy/ja.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defineMessages } from "react-intl"
import { playCopy } from "./ja/playground"
import { Copy, messages as englishMessages } from "./en"
import { comCopy } from "./en/community"

export const lang: Copy = defineMessages({
...englishMessages,
...playCopy,
...comCopy,
})
2 changes: 2 additions & 0 deletions packages/typescriptlang-org/src/copy/vo.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defineMessages } from "react-intl"
import { navCopy } from "./vo/nav"
import { Copy, messages as englishMessages } from "./en"
import { comCopy } from "./en/community"

export const lang: Copy = defineMessages({
...navCopy,
...englishMessages,
...comCopy,
})
2 changes: 2 additions & 0 deletions packages/typescriptlang-org/src/copy/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { navCopy } from "./zh/nav"
import { headCopy } from "./zh/head-seo"
import { docCopy } from "./zh/documentation"
import { indexCopy } from "./zh/index"
import { comCopy } from "./en/community"

export const messages = {
...chineseMessages,
Expand All @@ -13,6 +14,7 @@ export const messages = {
...headCopy,
...indexCopy,
...playCopy,
...comCopy,
}

export const lang = defineMessages(messages)
Loading