|
1 | 1 | # Languages
|
2 | 2 |
|
3 |
| -Content a `.aseprite-extension` file for a language extension: |
| 3 | +This is an example of a possible extension to translate Aseprite to |
| 4 | +Spanish. The content a `.aseprite-extension` file for a language |
| 5 | +extension can be something like this: |
4 | 6 |
|
5 | 7 | ```
|
6 |
| -language-example.aseprite-extension |
| 8 | +spanish-language.aseprite-extension |
7 | 9 | |
|
8 | 10 | +-- package.json
|
9 |
| -| |
10 |
| -+-- my-language.ini |
| 11 | ++-- es.ini |
11 | 12 | ```
|
12 | 13 |
|
13 |
| -Content of `package.json`: |
| 14 | +Content of `package.json`, e.g.: |
14 | 15 |
|
15 | 16 | ```
|
16 | 17 | {
|
17 |
| - "name": "language-example", |
18 |
| - "displayName": "Language Example", |
19 |
| - "description": "Translation to Language Example by Full Name", |
| 18 | + "name": "spanish-language", |
| 19 | + "displayName": "Spanish Translation", |
| 20 | + "description": "Translation to Spanish Example by Full Name", |
20 | 21 | "version": "1.0",
|
21 | 22 | "author": { "name": "Full Name", "url": "https://twitter.com/your_username_or_homepage_url" },
|
22 | 23 | "categories": [
|
23 | 24 | "Languages"
|
24 | 25 | ],
|
25 | 26 | "contributes": {
|
26 | 27 | "languages": [
|
27 |
| - { "id": "my-language", "path": "./my-language.ini" } |
| 28 | + { "id": "es", |
| 29 | + "path": "./es.ini", |
| 30 | + "displayName": "Español" } |
28 | 31 | ]
|
29 | 32 | }
|
30 | 33 | }
|
31 | 34 | ```
|
32 | 35 |
|
| 36 | +The `contributes.languages.displayName` property was introduced in |
| 37 | +**Aseprite v1.3-rc5** to show the language instead of the language code/ID |
| 38 | +(e.g. `es`) in the *Edit > Preferences > General > Language* combobox. |
| 39 | + |
| 40 | +For the `contributes.languages.id` use an [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). |
| 41 | + |
33 | 42 | ---
|
34 | 43 |
|
35 | 44 | **SEE ALSO**
|
|
0 commit comments