-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6bf9bc
commit 8630317
Showing
4 changed files
with
272 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
project_identifier_env: CROWDIN_DOCUSAURUS_PROJECT_ID | ||
api_key_env: CROWDIN_DOCUSAURUS_API_KEY | ||
base_path: "./" | ||
preserve_hierarchy: true | ||
|
||
files: | ||
- | ||
source: '/docs/*.md' | ||
translation: '/website/translated_docs/%locale%/%original_file_name%' | ||
languages_mapping: &anchor | ||
locale: | ||
'af': 'af' | ||
'ar': 'ar' | ||
'bs-BA': 'bs-BA' | ||
'ca': 'ca' | ||
'cs': 'cs' | ||
'da': 'da' | ||
'de': 'de' | ||
'el': 'el' | ||
'es-ES': 'es-ES' | ||
'fa': 'fa-IR' | ||
'fi': 'fi' | ||
'fr': 'fr' | ||
'he': 'he' | ||
'hu': 'hu' | ||
'id': 'id-ID' | ||
'it': 'it' | ||
'ja': 'ja' | ||
'ko': 'ko' | ||
'mr': 'mr-IN' | ||
'nl': 'nl' | ||
'no': 'no-NO' | ||
'pl': 'pl' | ||
'pt-BR': 'pt-BR' | ||
'pt-PT': 'pt-PT' | ||
'ro': 'ro' | ||
'ru': 'ru' | ||
'sk': 'sk-SK' | ||
'sr': 'sr' | ||
'sv-SE': 'sv-SE' | ||
'tr': 'tr' | ||
'uk': 'uk' | ||
'vi': 'vi' | ||
'zh-CN': 'zh-CN' | ||
'zh-TW': 'zh-TW' | ||
- | ||
source: '/website/i18n/en.json' | ||
translation: '/website/i18n/%locale%.json' | ||
languages_mapping: *anchor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
const languages = [{ | ||
enabled: true, | ||
name: 'English', | ||
tag: 'en', | ||
}, { | ||
enabled: true, | ||
name: 'Deutsch', | ||
tag: 'de', | ||
}, { | ||
enabled: true, | ||
name: 'Spanish', | ||
tag: 'es', | ||
}, { | ||
enabled: false, | ||
name: '日本語', | ||
tag: 'ja', | ||
}, { | ||
enabled: false, | ||
name: 'العربية', | ||
tag: 'ar', | ||
}, { | ||
enabled: false, | ||
name: 'Bosanski', | ||
tag: 'bs-BA', | ||
}, { | ||
enabled: false, | ||
name: 'Català', | ||
tag: 'ca', | ||
}, { | ||
enabled: false, | ||
name: 'Čeština', | ||
tag: 'cs', | ||
}, { | ||
enabled: false, | ||
name: 'Dansk', | ||
tag: 'da', | ||
}, { | ||
enabled: false, | ||
name: 'Ελληνικά', | ||
tag: 'el', | ||
}, { | ||
enabled: false, | ||
name: 'Español', | ||
tag: 'es-ES', | ||
}, { | ||
enabled: false, | ||
name: 'فارسی', | ||
tag: 'fa-IR', | ||
}, { | ||
enabled: false, | ||
name: 'Suomi', | ||
tag: 'fi', | ||
}, { | ||
enabled: false, | ||
name: 'Français', | ||
tag: 'fr', | ||
}, { | ||
enabled: false, | ||
name: 'עִברִית', | ||
tag: 'he', | ||
}, { | ||
enabled: false, | ||
name: 'Magyar', | ||
tag: 'hu', | ||
}, { | ||
enabled: false, | ||
name: 'Bahasa Indonesia', | ||
tag: 'id-ID', | ||
}, { | ||
enabled: false, | ||
name: 'Italiano', | ||
tag: 'it', | ||
}, { | ||
enabled: false, | ||
name: 'Afrikaans', | ||
tag: 'af', | ||
}, { | ||
enabled: false, | ||
name: '한국어', | ||
tag: 'ko', | ||
}, { | ||
enabled: false, | ||
name: 'मराठी', | ||
tag: 'mr-IN', | ||
}, { | ||
enabled: false, | ||
name: 'Nederlands', | ||
tag: 'nl', | ||
}, { | ||
enabled: false, | ||
name: 'Norsk', | ||
tag: 'no-NO', | ||
}, { | ||
enabled: false, | ||
name: 'Polskie', | ||
tag: 'pl', | ||
}, { | ||
enabled: false, | ||
name: 'Português', | ||
tag: 'pt-PT', | ||
}, { | ||
enabled: false, | ||
name: 'Português (Brasil)', | ||
tag: 'pt-BR', | ||
}, { | ||
enabled: false, | ||
name: 'Română', | ||
tag: 'ro', | ||
}, { | ||
enabled: false, | ||
name: 'Русский', | ||
tag: 'ru', | ||
}, { | ||
enabled: false, | ||
name: 'Slovenský', | ||
tag: 'sk-SK', | ||
}, { | ||
enabled: false, | ||
name: 'Српски језик (Ћирилица)', | ||
tag: 'sr', | ||
}, { | ||
enabled: false, | ||
name: 'Svenska', | ||
tag: 'sv-SE', | ||
}, { | ||
enabled: false, | ||
name: 'Türkçe', | ||
tag: 'tr', | ||
}, { | ||
enabled: false, | ||
name: 'Українська', | ||
tag: 'uk', | ||
}, { | ||
enabled: false, | ||
name: 'Tiếng Việt', | ||
tag: 'vi', | ||
}, { | ||
enabled: false, | ||
name: '中文', | ||
tag: 'zh-CN', | ||
}, { | ||
enabled: false, | ||
name: '繁體中文', | ||
tag: 'zh-TW' | ||
}] | ||
|
||
module.exports = languages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
const React = require('react'); | ||
|
||
const CompLibrary = require('../../core/CompLibrary.js'); | ||
|
||
const Container = CompLibrary.Container; | ||
const GridBlock = CompLibrary.GridBlock; | ||
|
||
const translate = require('../../server/translate.js').translate; | ||
|
||
class Help extends React.Component { | ||
render() { | ||
const supportLinks = [ | ||
{ | ||
content: ( | ||
<translate> | ||
Learn more using the [documentation on this | ||
site.](/test-site/docs/en/doc1.html) | ||
</translate> | ||
), | ||
title: <translate>Browse Docs</translate>, | ||
}, | ||
{ | ||
content: ( | ||
<translate> | ||
Ask questions about the documentation and project | ||
</translate> | ||
), | ||
title: <translate>Join the community</translate>, | ||
}, | ||
{ | ||
content: <translate>Find out what's new with this project</translate>, | ||
title: <translate>Stay up to date</translate>, | ||
}, | ||
]; | ||
|
||
return ( | ||
<div className="docMainWrapper wrapper"> | ||
<Container className="mainContainer documentContainer postContainer"> | ||
<div className="post"> | ||
<header className="postHeader"> | ||
<h2> | ||
<translate>Need help?</translate> | ||
</h2> | ||
</header> | ||
<p> | ||
<translate desc="statement made to reader"> | ||
This project is maintained by a dedicated group of people. | ||
</translate> | ||
</p> | ||
<GridBlock contents={supportLinks} layout="threeColumn" /> | ||
</div> | ||
</Container> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
Help.defaultProps = { | ||
language: 'en', | ||
}; | ||
|
||
module.exports = Help; |