Skip to content

Commit f6e4cb9

Browse files
committed
More i18n improvements
1 parent fc4ae5e commit f6e4cb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+627
-186
lines changed

.gitignore

+60
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,63 @@ _site
22
.sass-cache
33
.jekyll-metadata
44
.DS_Store
5+
6+
af/
7+
ar/
8+
ca/
9+
cs/
10+
da/
11+
de/
12+
el/
13+
es-ES/
14+
fr/
15+
he/
16+
it/
17+
ja/
18+
ko/
19+
hu/
20+
nl/
21+
no/
22+
pl/
23+
pt-PT/
24+
pt-BR/
25+
ro/
26+
ru/
27+
sr/
28+
fi/
29+
sv-SE/
30+
tr/
31+
vi/
32+
uk/
33+
zh-Hans/
34+
zh-Hant/
35+
36+
_data/i18n/af.yml
37+
_data/i18n/ar.yml
38+
_data/i18n/ca.yml
39+
_data/i18n/cs.yml
40+
_data/i18n/da.yml
41+
_data/i18n/de.yml
42+
_data/i18n/el.yml
43+
_data/i18n/es-ES.yml
44+
_data/i18n/fr.yml
45+
_data/i18n/he.yml
46+
_data/i18n/it.yml
47+
_data/i18n/ja.yml
48+
_data/i18n/ko.yml
49+
_data/i18n/hu.yml
50+
_data/i18n/nl.yml
51+
_data/i18n/no.yml
52+
_data/i18n/pl.yml
53+
_data/i18n/pt-PT.yml
54+
_data/i18n/pt-BR.yml
55+
_data/i18n/ro.yml
56+
_data/i18n/ru.yml
57+
_data/i18n/sr.yml
58+
_data/i18n/fi.yml
59+
_data/i18n/sv-SE.yml
60+
_data/i18n/tr.yml
61+
_data/i18n/vi.yml
62+
_data/i18n/uk.yml
63+
_data/i18n/zh-Hans.yml
64+
_data/i18n/zh-Hant.yml

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: ruby
2+
script:
3+
- make crowdin-sync
4+
- git add -A
5+
- git push origin master:gh-pages

404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ <h1 class="hero-text display-4">404: Page Not Found</h1>
1212
var GOOG_FIXURL_LANG = "en";
1313
var GOOG_FIXURL_SITE = "https://yarnpkg.com";
1414
</script>
15-
<script async type="text/javascript" src="https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
15+
<script type="text/javascript" src="https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
1616
</div>
1717
</div>

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
33
gem 'jekyll'
44
gem 'jekyll-redirect-from'
55
gem 'jekyll-paginate'
6+
gem 'crowdin-cli'

Gemfile.lock

+24
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
colorator (1.1.0)
5+
crowdin-api (0.4.1)
6+
rest-client (~> 1.8)
7+
crowdin-cli (0.5.4)
8+
crowdin-api (~> 0.4.0)
9+
gli (~> 2.9)
10+
i18n (~> 0.7, >= 0.7.0)
11+
rubyzip (~> 1.0)
12+
domain_name (0.5.20160826)
13+
unf (>= 0.0.5, < 1.0.0)
514
ffi (1.9.14)
615
forwardable-extended (2.6.0)
16+
gli (2.14.0)
17+
http-cookie (1.0.2)
18+
domain_name (~> 0.5)
19+
i18n (0.7.0)
720
jekyll (3.2.1)
821
colorator (~> 1.0)
922
jekyll-sass-converter (~> 1.0)
@@ -27,19 +40,30 @@ GEM
2740
rb-fsevent (~> 0.9, >= 0.9.4)
2841
rb-inotify (~> 0.9, >= 0.9.7)
2942
mercenary (0.3.6)
43+
mime-types (2.99.3)
44+
netrc (0.11.0)
3045
pathutil (0.14.0)
3146
forwardable-extended (~> 2.6)
3247
rb-fsevent (0.9.7)
3348
rb-inotify (0.9.7)
3449
ffi (>= 0.5.0)
50+
rest-client (1.8.0)
51+
http-cookie (>= 1.0.2, < 2.0)
52+
mime-types (>= 1.16, < 3.0)
53+
netrc (~> 0.7)
3554
rouge (1.11.1)
55+
rubyzip (1.2.0)
3656
safe_yaml (1.0.4)
3757
sass (3.4.22)
58+
unf (0.1.4)
59+
unf_ext
60+
unf_ext (0.0.7.2)
3861

3962
PLATFORMS
4063
ruby
4164

4265
DEPENDENCIES
66+
crowdin-cli
4367
jekyll
4468
jekyll-paginate
4569
jekyll-redirect-from

Makefile

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.PHONY: start install serve i18n-upload i18n-download
2+
3+
.DEFAULT_GOAL := start
4+
start: editor install serve
5+
6+
install: test-bundler
7+
@bundle install
8+
9+
serve: test-jekyll
10+
@jekyll serve
11+
12+
crowdin-sync: test-crowdin
13+
@crowdin-cli upload sources --auto-update -b master
14+
@crowdin-cli download -b master
15+
16+
###
17+
# Misc stuff:
18+
###
19+
20+
editor:
21+
@eval $(EDITOR) ./
22+
23+
BUNDLE_EXISTS := $(shell command -v bundle 2> /dev/null)
24+
JEKYLL_EXISTS := $(shell command -v jekyll 2> /dev/null)
25+
CROWDIN_EXISTS := $(shell command -v crowdin-cli 2> /dev/null)
26+
27+
test-bundler:
28+
ifndef BUNDLE_EXISTS
29+
$(error bundler is not installed. Run `gem install bundler`)
30+
endif
31+
32+
test-jekyll:
33+
ifndef JEKYLL_EXISTS
34+
$(error Jekyll is not installed. Run `make install`)
35+
endif
36+
37+
test-crowdin:
38+
ifndef CROWDIN_EXISTS
39+
$(error Crowdin is not installed. Run `make install`)
40+
endif
41+
ifndef CROWDIN_API_KEY
42+
$(error CROWDIN_API_KEY is undefined)
43+
endif

README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ This repo contains the source code for the Yarn website.
55
In order to get started:
66

77
```sh
8-
$ git clone [email protected]:yarnpkg/website.git yarn-website && cd yarn-website
9-
$ bundle
10-
$ jekyll serve
8+
$ git clone [email protected]:yarnpkg/website.git yarn-website
9+
$ cd yarn-website
10+
```
11+
12+
And then:
13+
14+
```sh
15+
$ make
16+
```
17+
18+
Or:
19+
20+
```sh
21+
$ make install
22+
$ make serve
1123
```

_data/i18n/en.yml

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
###
2+
# Global
3+
###
4+
5+
site_title: Yarn
6+
site_description: Yarn is a fast and reliable package manager for JavaScript.
7+
8+
site_nav_getting_started: Getting Started
9+
site_nav_documentation: Documentation
10+
site_nav_blog: Blog
11+
12+
###
13+
# Homepage
14+
###
15+
16+
homepage_tagline: Fast and reliable package management for JavaScript.
17+
18+
homepage_feature_fast_title: Ultra Fast.
19+
homepage_feature_fast_subtitle: It'll blow your mind.
20+
homepage_feature_fast_description: |
21+
Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id
22+
ligula porta felis euismod semper. Praesent commodo cursus magna, vel
23+
scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
24+
homepage_feature_fast_image_alt: Generic placeholder image
25+
26+
homepage_feature_secure_title: Mega Secure.
27+
homepage_feature_secure_subtitle: See for yourself.
28+
homepage_feature_secure_description: |
29+
Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id
30+
ligula porta felis euismod semper. Praesent commodo cursus magna, vel
31+
scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
32+
homepage_feature_secure_image_alt: Generic placeholder image
33+
34+
homepage_feature_reliable_title: Super Reliable.
35+
homepage_feature_reliable_subtitle: Checkmate.
36+
homepage_feature_reliable_description: |
37+
Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id
38+
ligula porta felis euismod semper. Praesent commodo cursus magna, vel
39+
scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
40+
homepage_feature_reliable_image_alt: Generic placeholder image
41+
42+
homepage_c2a_text: What are you waiting for?
43+
homepage_c2a_button: Get Started
44+
45+
homepage_featurette_offline_title: Offline mode
46+
homepage_featurette_offline_description: |
47+
If you've installed a package before, you can install it again without
48+
any internet connection.
49+
homepage_featurette_lockfiles_title: Lockfiles
50+
homepage_featurette_lockfiles_description: |
51+
Concise lockfile format. No whitespace, ordered keys to ensure minimal
52+
changes and noise.
53+
homepage_featurette_conflict_resolution_title: Conflict resolution
54+
homepage_featurette_conflict_resolution_description: |
55+
Ability to manually resolve version conflicts so only a single version per
56+
package exists.
57+
homepage_featurette_npm_and_bower_title: npm and bower
58+
homepage_featurette_npm_and_bower_description: |
59+
Compatible with npm and bower. Supports mixing registries.
60+
homepage_featurette_licenses_title: Licenses
61+
homepage_featurette_licenses_description: |
62+
Ability to restrict licenses of installed modules and ways to output
63+
licensing information.
64+
homepage_featurette_misc_title: And more...
65+
homepage_featurette_misc_description: |
66+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
67+
tempor incididunt ut labore et dolore magna aliqua.
68+
69+
###
70+
# Titles
71+
###
72+
73+
docs_index: Documentation
74+
docs_getting_started: Getting Started
75+
docs_install: Install
76+
docs_migrating_from_npm: Migrating from npm
77+
docs_cli_access: yarn access
78+
docs_cli_add: yarn add
79+
docs_cli_cache: yarn cache
80+
docs_cli_check: yarn check
81+
docs_cli_clean: yarn clean
82+
docs_cli_config: yarn config
83+
docs_cli_dist_tag: yarn dist-tag
84+
docs_cli_install: yarn install
85+
docs_cli_licenses: yarn licenses
86+
docs_cli_link: yarn link
87+
docs_cli_login: yarn login
88+
docs_cli_logout: yarn logout
89+
docs_cli_ls: yarn ls
90+
docs_cli_outdated: yarn outdated
91+
docs_cli_owner: yarn owner
92+
docs_cli_pack: yarn pack
93+
docs_cli_publish: yarn publish
94+
docs_cli_self_update: yarn self-update
95+
docs_cli_team: yarn team
96+
docs_cli_uninstall: yarn uninstall
97+
docs_cli_upgrade: yarn upgrade
98+
docs_cli_why: yarn why

_data/languages.yml

+30
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,90 @@
11
- name: English
22
tag: en
3+
enabled: Yes
34
- name: Afrikaans
45
tag: af
6+
enabled: No
57
- name: العربية
68
tag: ar
9+
enabled: No
710
- name: Català
811
tag: ca
12+
enabled: No
913
- name: Čeština
1014
tag: cs
15+
enabled: No
1116
- name: Dansk
1217
tag: da
18+
enabled: No
1319
- name: Deutsch
1420
tag: de
21+
enabled: No
1522
- name: Ελληνικά
1623
tag: el
24+
enabled: No
1725
- name: Español
1826
tag: es-ES
27+
enabled: No
1928
- name: Français
2029
tag: fr
30+
enabled: No
2131
- name: עִברִית
2232
tag: he
33+
enabled: No
2334
- name: Italiano
2435
tag: it
36+
enabled: No
2537
- name: 日本語
2638
tag: ja
39+
enabled: No
2740
- name: 한국어
2841
tag: ko
42+
enabled: No
2943
- name: Magyar
3044
tag: hu
45+
enabled: No
3146
- name: Nederlands
3247
tag: nl
48+
enabled: No
3349
- name: Norsk
3450
tag: no
51+
enabled: No
3552
- name: Polskie
3653
tag: pl
54+
enabled: No
3755
- name: Português
3856
tag: pt-PT
57+
enabled: No
3958
- name: Português (Brasil)
4059
tag: pt-BR
60+
enabled: No
4161
- name: Română
4262
tag: ro
63+
enabled: No
4364
- name: Русский
4465
tag: ru
66+
enabled: No
4567
- name: Српски језик (Ћирилица)
4668
tag: sr
69+
enabled: No
4770
- name: Suomi
4871
tag: fi
72+
enabled: No
4973
- name: Svenska
5074
tag: sv-SE
75+
enabled: No
5176
- name: Türkçe
5277
tag: tr
78+
enabled: No
5379
- name: Tiếng Việt
5480
tag: vi
81+
enabled: No
5582
- name: Українська
5683
tag: uk
84+
enabled: No
5785
- name: 中文
5886
tag: zh-Hans
87+
enabled: No
5988
- name: 繁體中文
6089
tag: zh-Hant
90+
enabled: No

0 commit comments

Comments
 (0)