From 265f5e3c8e44e538dbe58a8907ba7def4a265f5e Mon Sep 17 00:00:00 2001 From: Marcel Brode Date: Wed, 25 Oct 2023 11:19:33 +0200 Subject: [PATCH] NEXT-28516 - Init crowdin --- .gitignore | 1 + crowdin.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .gitignore create mode 100644 crowdin.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000000..57872d0f1e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vendor/ diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 00000000000..2186401e0d4 --- /dev/null +++ b/crowdin.yml @@ -0,0 +1,40 @@ +"project_id": "362447" # Sandbox +"project_id_env": "CROWDIN_PROJECT_ID" +"api_token_env": "CROWDIN_PERSONAL_TOKEN" +"base_path": "." +"base_url": "https://api.crowdin.com" +"preserve_hierarchy": true + +files: [{ + "source": "", + "translation": "/src/translations/%two_letters_code%/%original_file_name%", + + # Files or directories for ignore + # e.g. ["/**/?.txt", "/**/[0-9].txt", "/**/*\?*.txt"] + # + # "ignore": [], + + "type": "json", + + # The parameter "update_option" is optional. If it is not set, after the files update the translations for changed strings will be removed. Use to fix typos and for minor changes in the source strings + # e.g. "update_as_unapproved" or "update_without_changes" + # + # "update_option": "", + + # 0 - do not escape single quote; + # 1 - escape single quote by another single quote; + # 2 - escape single quote by backslash; + # 3 - escape single quote by another single quote only in strings containing variables ( {0} ). + "escape_quotes": 2, + + # Defines whether any special characters (=, :, ! and #) should be escaped by backslash in exported translations. + # 0 - do not escape special characters + # 1 - escape special characters by a backslash + "escape_special_characters": 0 + + # + # Does the first line contain header? + # e.g. true or false + # + # "first_line_contains_header": true, +}]