disnake icon indicating copy to clipboard operation
disnake copied to clipboard

Ignoring i18n files starting with .

Open OseSem opened this issue 1 year ago • 1 comments

Summary

This feature will ignore all the files in a folder that gets loaded with i18n files

What is the feature request for?

The core library

The Problem

When loading locale files I had a template file that started with a dot. Because of this I had to move it to another folder. But this could have been fixed by a simple startswith check.

I could make this for you guys if needed.

The Ideal Solution

The function ignores the i18n file using a .startswith(“.”)

The Current Solution

No response

Additional Context

No response

OseSem avatar Apr 14 '24 20:04 OseSem

I think this is not needed in core, as this can be easily implemented manually (path.glob + if .startswith("."): continue + bot.i18n.load).

elenakrittik avatar May 15 '24 15:05 elenakrittik

I will close this as I have already found a solution.

OseSem avatar May 18 '24 12:05 OseSem