Closed dfdgsdfg closed 4 years ago
Hi @dfdgsdfg I'm sorry for the inconvenience!
Let me forward it to our developers for further investigation, we will get back to you with the updates in the short run
Hi @dfdgsdfg , could you please provide your crowdin.yml
file content?
Of course.
"project_identifier": "________ from project settings > API ________ "
"api_key": "________ from project settings > API ________ "
"preserve_hierarchy": true
files: [
{
"source": "lib/l10n/*.arb",
"translation": "lib/l10n/intl_%two_letters_code%.arb",
},
]
@dfdgsdfg this plugin works only with the new Configuration File Config (for CLI v3).
All you need to do is:
project_identifier
to project_id
. Project ID can be found in the Project Settings > API.api_key
to api_token
. API token must be generated in the Account Settings > API & SSO.Also, we will try to fix the current behavior and display an appropriate error message.
Still have same error. Also cli does not work.
"project_id": "__from Project Settings > API__"
"api_token": "__Account Settings > API & SSO > Personal Access Tokens__"
"base_path": ""
"preserve_hierarchy": true
$ crowdin list project
Project identifier is empty
Project key is empty
@dfdgsdfg, I suppose you are using CLI v2. This config (containing project_id
, api_token
) compatible only with CLI v3. Try to use CLI v3
I removed brew installed Crowdin CLI, then install a new version.
$ java -jar ~/bin/crowdin-cli.jar lint
Your configuration file looks good
$java -jar ~/bin/crowdin-cli.jar list project
❌ Fetching project info
❌ Failed to collect project info. Please contact our support team for help
❌ Project with id 'effy-app' doesn't exist
Is it related with my project id? It has a hyphen in the project name.
The project identifier is using only for CLI v2.
For CLI v3 and Configuration file v3 you should use numerical project ID:
Seems connect project without error.
How can I use this plugin?
It shows a project, but doesn't contain anything. I clicked the refresh icon and download icon, but nothing happened.
The plugin will build tree with source files. In Crowdin Explorer you can upload those files into Crowdin and download translations.
Please check the files section in crowdin.yml
and make sure that patterns respond to localization files structure in your project.
@alexandrtovmach Thanks. I will try it.
Seems
crowdin.yml
configured correctly. CLI works well with it like listing or download.Here is a log that is related on Log (Extension Host)