danhper / danhper/python-i18n

How to exclude files from search path?

Open
#41 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
246
Forks
46
PR merge metrics
No merged PRs in 30d

Description

I use

`i18n.set('filename_format', 'translations.{format}') `

to load `translations.yml` and that works fine.

However, I would like to exclude `synonyms.yml` from the load path because I use that file for a different purpose.

=> How to do so?

I tried to use negative look ahead regular expression

'^(?!synonyms)translations.{format}'

but that did not work.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.