I have translated the content into Chinese, but some of the contents are still displayed in English. For example: #: frontend/src/metabase/visualizations/visualizations/Table.jsx:67
msgid “Fields to include”
msgstr “选择要显示的字段”
I have not tried working with localization, so I’m not familiar with the development steps, but have a few points for you:
Which version of the source code are you building with? I noticed that the translation message “Fields to include” is not in the master branch version of frontend/src/metabase/visualizations/visualizations/Table.jsx but if I go back to for example v0.28.0 it is there. So it sounds like what you have is out of sync.
I used the source code of the 0.29.3 version,Table.jsx has been loaded before calling:
app.js
import { setLocalization } from “metabase/lib/i18n”;
if (window.MetabaseLocalization) {
setLocalization(window.MetabaseLocalization);
}
So it is not properly localized.
That’s odd, and sounds like a bug. The setLocalization call is intentionally near the top of app.js, before most of the application code is loaded, so it shouldn’t be an issue. I’ll have to look into it. I’ve filed an issue here: https://github.com/metabase/metabase/issues/8209
@hztyzhq Are you able to contribute your translation to the project?
@tom
By August 3, 300+ entries had been complete,and it is estimated that first draft will be completed by the end of September,then available to internal users and refined accroding to their feedback.
I will be very pleased if the project requires me to provide localization file.
@hztyzhq We fixed the bug you mentioned here. Also we’re starting to use POEditor for managing localization: https://poeditor.com/join/project/ynjQmwSsGh It would be great if you could submit what you have and maybe other people can help you.
After you have signed up (free) - and easiest to just use your GitHub account - you select Chinese. I can see there is already some Chinese (simplified) uploaded by someone. Then on the Chinese page there’s a button for uploading in different formats: