Skip to main content

What are resource filters?

Resource filters specify which files or assets synchronize between LingoHub and your connected integration (e.g., GitHub, GitLab, or Azure). Using the visual configuration tool, you can precisely include target files for localization while excluding unneeded repository assets.

Accessing resource filter configuration

  1. Click Projects in the top navigation bar and select your project from the left sidebar.

  2. Go to the Settings tab and select the integration sub-tab (e.g., Integration (GitLab)).

  3. Under Branches & Files, locate the Files section and click Configure.


Understanding visual status indicators

Files and folders in the All files tree display color-coded status labels:

  • Included: Green indicator; file or directory is explicitly selected for synchronization.

  • Recursively Included: Yellow indicator; directory is included via an inherited parent filter.

  • Excluded: Red indicator; file or directory is explicitly excluded.

  • Recursively Excluded: Purple indicator; directory is ignored via an inherited parent exclusion rule.


Applying inclusion and exclusion filters

You have two primary methods to manage file inclusion and exclusion: using the interactive UI elements (file tree and preview list) or entering custom pattern rules.

How to include files

Method 1: Via the file tree

Hover over any folder or file in the All files tree on the left and click Include.

The active rule immediately appears under Synchronization filters on the right, and the matched files are displayed in the Files to be synchronized preview below.

Method 2: Via pattern input

Keep the top dropdown set to Include (=), type your custom file or path pattern into the Enter a pattern field, and click Add filter.

The rule will populate in the Synchronization filters panel, and the preview list will update to show all matching files.

How to exclude files

Method 1: Via the preview list

Hover over any unwanted file inside the Files to be synchronized list (bottom right) and click Exclude. An exclusion filter is automatically generated in the Synchronization filters panel above.

Method 2: Via pattern input

Switch the top dropdown from Include (=) to Exclude (), enter your custom pattern (e.g., android/**) into the Enter a pattern field and click Add filter. You can immediately see the active exclusion rule in the Synchronization filters panel.

Saving synchronization rules

The Files to be synchronized section updates in real time to display every matched file path. Once satisfied with your filtering setup, click Apply & sync at the bottom right to execute file synchronization.

Filter wildcard syntax guide

Wildcard

Description

Example

?

Matches exactly one character

payment_e?.xml matches payment_en.xml and payment_es.xml

*

Matches zero or more characters within a directory

*_en.xml matches all English XML files in that directory

**

Matches zero or more nested directories

android/**/strings.xml matches strings.xml across all subfolders

Need more help?

Couldn't find what you were looking for? Reach out to our team at [email protected], and we will gladly assist you.

Did this answer your question?