Page MenuHomePhabricator

Implement localisation and internationalisation in the tool
Closed, ResolvedPublic

Description

VideoCutTool is a tool to trim, crop, rotate on-the-fly videos in Wikimedia Commons and can be found at https://videocuttool.wmflabs.org/

Task:

  • Learn about VideoCutTool from Commons: VideoCutTool
  • Using react antd's ConfigProvider module implement the localization and internationalization to all the required items in the tool.

Code repos:

If you need any help, please feel free to comment here, happy to help you!

Event Timeline

Aklapper renamed this task from Implement localisation and internalisation in the tool to Implement localisation and internationalisation in the tool.Dec 17 2020, 10:09 AM
Aklapper updated the task description. (Show Details)
dbarratt subscribed.

This task doesn't seem related to React-i18n, but I would highly recommend using it in your project. :)

Should React-i18n or antd's ConfingProvider be used now?

From a first look, React-i18n seems to be easier to implement and less code messy, while antd's ConfigProvider needs to be implemented directly in the code, but allows for some more functions (ltr/rtl specifically).
Might also just be not knowing much about how that works in antd.

@Tobi_406 Yes, You are right I had a look at React-i18n earlier today and it's super fine, also easy to implement. I'm happy to go with either method(react-i18n or antd's ConfigProvider) in VideoCutTool, So feel free to claim the ticket and patch it ;-)

Change 650806 had a related patch set uploaded (by Tobi 406; owner: Tobi 406):
[labs/tools/VideoCutTool@master] Implement internationalisation

https://gerrit.wikimedia.org/r/650806

Change 650806 merged by jenkins-bot:
[labs/tools/VideoCutTool@master] Implement Internationalisation

https://gerrit.wikimedia.org/r/650806

Hey @Tobi_406 ! Your patch is merged now, If you are still interested, Can you please add more languages in the dropdown? Thanks a lot!