crowdin/skills

croql

Helps write, fix, and optimize Crowdin CroQL expressions for strings, translations, TM segments, and glossary terms.

查看源码
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

CroQL Skill

Use this skill to turn natural-language filtering goals into valid Crowdin CroQL expressions.

Full documentation

What to produce

When helping with CroQL, return:

  1. A primary CroQL expression.
  2. A short explanation of why it matches the request.
  3. One optional stricter or broader variant if the request is ambiguous.

Quick workflow

  1. Identify the data context:
  • Source strings
  • Language translations
  • TM segments
  • Glossary terms
  1. Map user intent to CroQL fields and operators.
  2. Build the query in small clauses and combine with and/or.
  3. Validate likely pitfalls (wrong context field, missing language scope, unencoded query).
  4. Provide the final query and ready-to-run endpoint sample.

Core syntax cheatsheet

  • Comparison: =, !=, >, >=, <, <=, between ... and ..., contains
  • Logic: and, or, xor, not
  • Filtering collections: collection where (predicate)
  • Counting: count of translations, count of comments where (...)
  • Object member access: id of file, count of votes
  • Mentions:
  • User: @user:"username"
  • Language: @language:"uk"

Context-aware query patterns

Pick fields that belong to the correct context. A frequent failure mode is using fields from a different context.

1) Source strings context

Common fields:

  • text, identifier, context
  • is hidden, is duplicate
  • count of translations, count of comments, count of screenshots
  • count of languages summary where (...)
  • id of file, added, updated
  • Enterprise fields filters:
  • count of fields where (name = "Priority" and value = "High") > 0

Examples:

  • Hidden non-duplicates with translations:
  • is hidden and not is duplicate and count of translations > 0
  • Source contains ABC, but translations do not:
  • text contains "ABC" and count of translations where (text contains "ABC") = 0
  • At least one approval in any language:
  • count of languages summary where (approvalsCount >= 1) > 0

2) Translation context

Common fields:

  • text, plural form, is pre translated, provider, user, updated
  • Nested: count of votes where (is up), count of approvals where (...)

Example:

  • By specific user or highly upvoted:
  • user = @user:"crowdin" or count of votes where (is up) >= 100

3) TM segment context

Common structure is record-based:

  • count of records where (usageCount > 0) > 0
  • count of records where (createdBy = @user:"crowdin") > 0

4) Glossary term context

Common fields:

  • text, description, language, user, partOfSpeech, status, type, gender
  • note, lemma, url, createdAt, updatedAt

Examples:

  • Obsolete or not recommended:
  • status = "not_recommended" or status = "obsolete"
  • English lemma:
  • lemma = "cancel" and language = @language:"en"

Advanced editor-style filters

These are frequent requests from users trying to mirror UI filters in API calls:

  • Untranslated:
  • count of languages summary = 0
  • Translated:
  • count of languages summary where (is translated) > 0
  • Approved:
  • count of languages summary where (is approved) > 0
  • Has QA issues:
  • count of languages summary where (has qa issues) > 0
  • Duplicates only:
  • is duplicate

If target language matters, scope it explicitly:

  • count of languages summary where (language = @language:"uk" and is translated) > 0

Query construction strategy

When a user request is underspecified:

  1. Start with the strictest interpretation.
  2. Offer one broader fallback query.
  3. State what assumption changed (language scope, approval threshold, date range, etc.).

Example:

  • Strict:
  • count of languages summary where (language = @language:"uk" and is translated and not is approved) > 0
  • Broader:
  • count of languages summary where (is translated and not is approved) > 0

Common mistakes to prevent

  • Mixing source-string fields with translation-only or glossary-only fields.
  • Forgetting language scoping when reproducing Editor filters in API.
  • Using raw (non-encoded) CroQL in request URLs.
  • Missing parentheses in nested where clauses.
  • Overusing or without grouping conditions.
来自同一仓库

更多 Skills

全部 Skills
crowdin
社区

context-extraction

Writes meaningful aicontext values in Crowdin JSONL files for strings that need translator context. Use when extracting context, filling aicontext fields, adding context to ambiguous strings, or working with Crowdin JSONL context files.

安装量
1
GitHub Stars
6
最近更新
9月10日
crowdin
社区

crowdin-context-cli

Documents the Crowdin CLI context commands (download, upload, status, reset) for AI enrichment. Use when downloading or uploading strings context for Crowdin, checking context coverage, resetting AI-generated context, managing context files, or running crowdin context commands.

安装量
1
GitHub Stars
6
最近更新
9月10日
crowdin
社区

glossary-generation

Generates a starting glossary for a Crowdin project from the project's own source strings and uploads it with the Crowdin CLI. Use when someone wants to create a glossary, extract key terms or terminology from an app's strings, mark product and feature names as do-not-translate, or seed a Crowdin project with consistent vocabulary - including bare phrasings like "make a glossary for my project". Terms are drafted for review and never uploaded unseen, and translations are never invented. Not for managing an existing glossary's entries one by one, and not for the full internationalize-and-connect journey (that is i18n-setup, which delegates here).

安装量
1
GitHub Stars
6
最近更新
9月10日
crowdin
社区

i18n-setup

Takes a project from hardcoded strings to internationalized, connected to Crowdin, and translating continuously. Use when someone wants to add i18n or multi-language support, internationalize an app, extract hardcoded strings, set up Lingui (or another i18n library), or connect Crowdin to a repository - including connect-only, "my app already uses i18next/next-intl/vue-i18n/Lingui, wire it to Crowdin". Not for individual crowdin CLI commands or crowdin.yml syntax (that is crowdin-cli), not for editing Crowdin context files or aicontext on their own (context-extraction, crowdin-context-cli), not for generating a glossary alone (glossary-generation), and not for building Crowdin apps (create-app).

安装量
1
GitHub Stars
6
最近更新
9月10日