Skip to content

Commit a0707cc

Browse files
committed
Automatic translation exports
0 parents  commit a0707cc

File tree

3 files changed

+98
-0
lines changed

3 files changed

+98
-0
lines changed
+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright (c) 2022-2023 Jonah Aragon <jonah@triplebit.net>
2+
3+
# Permission is hereby granted, free of charge, to any person obtaining a copy
4+
# of this software and associated documentation files (the "Software"), to
5+
# deal in the Software without restriction, including without limitation the
6+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7+
# sell copies of the Software, and to permit persons to whom the Software is
8+
# furnished to do so, subject to the following conditions:
9+
10+
# The above copyright notice and this permission notice shall be included in
11+
# all copies or substantial portions of the Software.
12+
13+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
16+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19+
# IN THE SOFTWARE.
20+
21+
name: 💬 Crowdin Download
22+
23+
on:
24+
workflow_dispatch:
25+
schedule:
26+
- cron: '0 4 * * *'
27+
28+
permissions: write-all
29+
30+
jobs:
31+
synchronize-with-crowdin:
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
36+
- name: Checkout
37+
uses: actions/checkout@v3
38+
39+
- name: crowdin action
40+
uses: crowdin/github-action@v1.7.1
41+
with:
42+
upload_sources: false
43+
upload_translations: false
44+
download_sources: false
45+
download_translations: true
46+
push_translations: true
47+
create_pull_request: false
48+
localization_branch_name: main
49+
download_translations_args: '--all'
50+
config: crowdin.yml
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
53+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
54+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Exported Translations
2+
3+
This is an archive of translations on Crowdin, updated daily. This repo is not used for building the final website. Pull Requests here will be rejected, to help translate the site please [join the project on Crowdin](https://crowdin.com/project/privacyguides). If you have additional questions, feel free to [ask on Matrix](https://matrix.to/#/#pg-i18n:aragon.sh).
4+
5+
If you want to build a translated version of this site locally using these files, you can follow the instructions [here](https://github.com/privacyguides/privacyguides.org/blob/main/README.md#local-translated-site-builds), replacing steps 1-3 with:
6+
7+
1. Copy the `/includes`, `/i18n`, and `/theme` folders from this repo to the root of the [privacyguides.org](https://github.com/privacyguides/privacyguides.org) repo.

crowdin.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright (c) 2023 Jonah Aragon <jonah@triplebit.net>
2+
3+
# Permission is hereby granted, free of charge, to any person obtaining a copy
4+
# of this software and associated documentation files (the "Software"), to
5+
# deal in the Software without restriction, including without limitation the
6+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7+
# sell copies of the Software, and to permit persons to whom the Software is
8+
# furnished to do so, subject to the following conditions:
9+
10+
# The above copyright notice and this permission notice shall be included in
11+
# all copies or substantial portions of the Software.
12+
13+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
16+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19+
# IN THE SOFTWARE.
20+
21+
api_token_env: CROWDIN_PERSONAL_TOKEN
22+
project_id: "509862"
23+
"preserve_hierarchy": true
24+
files:
25+
- source: "/docs/**/*.*"
26+
translation: "/i18n/%two_letters_code%/**/%file_name%.%file_extension%"
27+
skip_untranslated_files: false
28+
- source: "/theme/overrides/*.en.html"
29+
translation: "/theme/overrides/%file_name%.%two_letters_code%.html"
30+
translation_replace:
31+
"en.": ""
32+
skip_untranslated_files: false
33+
- source: "/includes/*.en.*"
34+
translation: "/includes/%file_name%.%two_letters_code%.%file_extension%"
35+
translation_replace:
36+
"en.": ""
37+
skip_untranslated_files: false

0 commit comments

Comments
 (0)