naturtag.utils.i18n module

Internationalization utilities

naturtag.utils.i18n.get_locales(db_path=PosixPath('/home/docs/.local/share/Naturtag/naturtag.db'))

Get all locale codes represented in the FTS table and their localised names

Return type:

dict[str, str]

naturtag.utils.i18n.read_locales()
Return type:

dict[str, str]

naturtag.utils.i18n.write_locales(db_path=PosixPath('/home/docs/.local/share/Naturtag/naturtag.db'))