Refer to Qt Documentation Qt 6 Translations Dont forget to build the CMake target update_translations when use CMake with C++.