Methods
createNumRequestCounter(attrs) → {object}
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
attrs |
object | Refer to individual attrs Properties
|
- Source:
Returns:
{ inc() {} }.
- Type
- object
getColor(attrs) → {string}
Return color for active, maintenance and archived statuses, which were the three example keywords used in Netflix's open-source meetup. See https://slideshare.net/aspyker/netflix-open-source-meetup-season-4-episode-1 Other keywords are possible, but will appear in grey.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
attrs |
object | Refer to individual attrs Properties
|
Returns:
color
- Type
- string
render(translatedPercent) → {object}
Takes a percentage and maps it to a message and color.
The colors are determined based on how Weblate does it internally. Weblate on GitHub
Parameters:
| Name | Type | Description |
|---|---|---|
translatedPercent |
* | The percentage of translations translated. |
Returns:
Format for the badge.
- Type
- object