Localization failure [SOLVED]

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 “选择要显示的字段”

What do I need to do with it?

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.

  • On master the metabase.pot file got updated a day ago:

  • There is renewed hope that localization could be part of next major version

Thanks very much!

I used the source code of the 0.29.3 version,Table.jsx has been loaded before calling:
import { setLocalization } from “metabase/lib/i18n”;
if (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?

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.

1 Like

@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.

There are 1112 messages that have not been translated.

How do I submit my completed translation(zh.po,zh.json)?

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:

1 Like

@hztyzhq 你好,我也刚刚开始关注这个项目,本地化的文档能email一份给我吗 freedomme@163.com