Skip to content

Commit 567b1c8

Browse files
Improve translations (axios#30)
* [Updated] CONTRIBUTING.md to account for new Inert version * [Fixed] 'Get Started' button now points to translated introduction * [Updated] Automated most of the config construction for translations * [Updated] fixed language names in language selector * [Updated] Language configuration * [Added] Translator's guide
1 parent 2287249 commit 567b1c8

File tree

10 files changed

+280
-202
lines changed

10 files changed

+280
-202
lines changed

CONTRIBUTING.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Commit messages should be verb based, using the following pattern:
1717

1818
### Developing
1919

20-
- `npm i -g inert-cli` or `yarn global add inert-cli` to work be able to use the Inert CLI.
20+
- If you have `inert-cli` installed, remove it.
21+
- `npm i -g inert-ssg` or `yarn global add inert-ssg` to work be able to use the Inert CLI.
2122
- `inert build` to build the documentation.
2223

23-
Please don't include changes to `dist/` in your pull request. This should only be updated when releasing a new version.
24+
Please don't include changes to `dist/` or `public/` in your pull request. This should only be updated when releasing a new version.

de.lang.js

+37-13
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ module.exports = {
2929
},
3030
{
3131
type: "link",
32-
href: "/de/docs/intro",
32+
href: "/docs/intro",
3333
text: "Einführung",
3434
},
3535
{
3636
type: "link",
37-
href: "/de/docs/example",
37+
href: "/docs/example",
3838
text: "Beispiel",
3939
},
4040
{
4141
type: "link",
42-
href: "/de/docs/post_example",
42+
href: "/docs/post_example",
4343
text: "POST-Anfragen",
4444
},
4545
{
@@ -48,47 +48,47 @@ module.exports = {
4848
},
4949
{
5050
type: "link",
51-
href: "/de/docs/api_intro",
51+
href: "/docs/api_intro",
5252
text: "Axios-API",
5353
},
5454
{
5555
type: "link",
56-
href: "/de/docs/instance",
56+
href: "/docs/instance",
5757
text: "Die Axios-Instanz",
5858
},
5959
{
6060
type: "link",
61-
href: "/de/docs/req_config",
61+
href: "/docs/req_config",
6262
text: "Anfragenkonfigurationsschema",
6363
},
6464
{
6565
type: "link",
66-
href: "/de/docs/res_schema",
66+
href: "/docs/res_schema",
6767
text: "Antwortenschema",
6868
},
6969
{
7070
type: "link",
71-
href: "/de/docs/config_defaults",
71+
href: "/docs/config_defaults",
7272
text: "Konfigurationsstandardwerte",
7373
},
7474
{
7575
type: "link",
76-
href: "/de/docs/interceptors",
76+
href: "/docs/interceptors",
7777
text: "Abfänger",
7878
},
7979
{
8080
type: "link",
81-
href: "/de/docs/handling_errors",
81+
href: "/docs/handling_errors",
8282
text: "Errorverarbeitung",
8383
},
8484
{
8585
type: "link",
86-
href: "/de/docs/cancellation",
86+
href: "/docs/cancellation",
8787
text: "Anfragen abbrechen",
8888
},
8989
{
9090
type: "link",
91-
href: "/de/docs/urlencoded",
91+
href: "/docs/urlencoded",
9292
text: "URL-Ähnlich Kodierte Anfragenkörper",
9393
},
9494
{
@@ -97,8 +97,32 @@ module.exports = {
9797
},
9898
{
9999
type: "link",
100-
href: "/de/docs/notes",
100+
href: "/docs/notes",
101101
text: "Weitere Notizen",
102102
},
103+
{
104+
type: "heading",
105+
text: "Mitwirken",
106+
},
107+
{
108+
type: "link",
109+
href: "https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md",
110+
text: "Code of Conduct",
111+
},
112+
{
113+
type: "link",
114+
href: "https://github.com/axios/axios/blob/master/COLLABORATOR_GUIDE.md",
115+
text: "Leitfaden",
116+
},
117+
{
118+
type: "link",
119+
href: "https://github.com/axios/axios/blob/master/CONTRIBUTING.md",
120+
text: "Mitwirken"
121+
},
122+
{
123+
type: "link",
124+
href: "/docs/translating",
125+
text: "Übersetzungen Hinzufügen"
126+
}
103127
],
104128
};

en.lang.js

+35-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ module.exports = {
1414
extensible interface.`,
1515
},
1616
// `t` stands fot `translation`. This will contain translations of single words or phrases
17-
t: {},
17+
t: {
18+
"Get Started": undefined,
19+
"View on GitHub": undefined,
20+
"Languages": undefined,
21+
"Open Source": undefined,
22+
"Contribute": undefined,
23+
"Source on GitHub": undefined,
24+
"Fork on GitHub": undefined,
25+
"Fork the Website": undefined,
26+
"Create an Issue": undefined,
27+
},
1828
sidebar: [
1929
{
2030
type: "heading",
@@ -93,5 +103,29 @@ module.exports = {
93103
href: "/docs/notes",
94104
text: "Notes",
95105
},
106+
{
107+
type: "heading",
108+
text: "Contributors",
109+
},
110+
{
111+
type: "link",
112+
href: "https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md",
113+
text: "Code of Conduct",
114+
},
115+
{
116+
type: "link",
117+
href: "https://github.com/axios/axios/blob/master/COLLABORATOR_GUIDE.md",
118+
text: "Collaborator Guide",
119+
},
120+
{
121+
type: "link",
122+
href: "https://github.com/axios/axios/blob/master/CONTRIBUTING.md",
123+
text: "Contributing to Axios"
124+
},
125+
{
126+
type: "link",
127+
href: "/docs/translating",
128+
text: "Translating these docs"
129+
}
96130
],
97131
};

0 commit comments

Comments
 (0)