forked from opencollective/documentation
-
Notifications
You must be signed in to change notification settings - Fork 1
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
7d41791
commit c202794
Showing
2 changed files
with
49 additions
and
0 deletions.
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
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,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\). | ||
|