Closed Pukimaa closed 7 months ago
Also tried just to append "i18n" as the folder. That also didn't work. I mean everything works if I put it in the i18n folder.
faced with the same problem, have you found a solution?
Also tried just to append "i18n" as the folder. That also didn't work. I mean everything works if I put it in the i18n folder.
I've created another version (tako-discord/python-i18n) with the help from someone else. But you need to set the format to locale.extension
(or however it was...so it removes the namespace) and then it works. However I haven't tried if it now also works without a subdir.
i18n/category/en.yml
-> category.key
@pos1er @Pukimaa make sure you have pyyaml
install on your os.
@pos1er @Pukimaa make sure you have
pyyaml
install on your os.
Not the issue. Having the folder structure different is no problem too.
My folder structure is as following:
And if I load the files as following:
i18n.load_path.append(f"{os.getcwd()}{path_trimmer}i18n")
(path trimmer is/
or\\
depending on the os) or justi18n.load_path.append("i18n")
And I get translation
config.key
orinfo.key
I don't get the translation but only the input. However in the README it was stated: