Skip to content

Commit

Permalink
GitBook: [master] 2 pages modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree authored and gitbook-bot committed Jul 10, 2019
1 parent 7d41791 commit c202794
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,5 @@
* [Design](design/README.md)
* [Design Workflow](design/understanding-the-design-workflow.md)
* [Contribution Guidelines](design/untitled.md)
* [Translators](translators.md)

48 changes: 48 additions & 0 deletions translators.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
description: >-
Procedure and documentation about how to contribute to the Open Collective
translations
---

# Translators

{% hint style="info" %}
We use Crowdin to manage all our translations. You can join and contribute on: [https://crowdin.com/project/opencollective/](https://crowdin.com/project/opencollective/)
{% endhint %}

## Format

### Variables

Words between brackets are variables that meant to be replaced by dynamic values.

For exemple the string:

```text
Hello {collectiveName}!
```

Will render as **`Hello Webpack!`** if the collective name is Webpack. You must never change the variable names.

### Select

`select` is a special command that let us render different texts conditionally. The base pattern is:

```text
{myVariable, select, value1 {Rendered if myVariable=value1} other {Otherwise this}}
```

A classic example for that is the interval select:

```text
{amount} {interval, select, month {monthly} year {yearly}}
```

Here `interval` is the variable with `month` and `year` as possible values. If amount is equal to `$5` and interval to `year`, the template above will be rendered to:

```text
$5 yearly
```

Here again, don't change the variable name or the `select` keyword, only the replaced strings \(`monthly` and `yearly` if we take the example above\).

0 comments on commit c202794

Please sign in to comment.