A vcpkg registry with one port, ci18n: translations for C in one header, with CLDR plural rules for 71 languages.
Add it to the vcpkg-configuration.json next to your vcpkg.json:
{
"default-registry": {
"kind": "git",
"repository": "https://github.com/microsoft/vcpkg",
"baseline": "<a commit of microsoft/vcpkg>"
},
"registries": [
{
"kind": "git",
"repository": "https://github.com/ilyabrin/vcpkg-registry",
"baseline": "<the latest commit of this repository>",
"packages": ["ci18n"]
}
]
}Then depend on it in vcpkg.json and use it from CMake:
{ "dependencies": ["ci18n"] }find_package(ci18n CONFIG REQUIRED)
target_link_libraries(main PRIVATE ci18n::ci18n)ci18n_compile_translations() comes with the package as well; see the
library's compiled catalogues.