gradio icon indicating copy to clipboard operation
gradio copied to clipboard

update i18n tokens

Open pngwn opened this issue 2 years ago • 4 comments

In amogst the 3.0 work we have added lots of new 'keywords' in various places. Often as default values (in case a kwarg isn't passed in). We need to go through all of these and swap any hardcoded values for i18n tokens, add them to the english i18n document and figure out how we can go about updating all of the other translations.

pngwn avatar Apr 25 '22 18:04 pngwn

Yup sounds good. This is important, but I don't think this is a blocker for 3.0 so not adding to the 3.0 milestone. We can do this as part of revamped i18n efforts, which include #785 as well

abidlabs avatar Apr 25 '22 18:04 abidlabs

@dawoodkhan82 I believe you worked on the i81n can you add more details here so that the community knows how to contribute translations for the new keywords?

abidlabs avatar Jul 11 '22 08:07 abidlabs

Example of how to add new i18n tokens here. To provide translations for tokens that already exist in en.json follow these instructions.

dawoodkhan82 avatar Jul 11 '22 13:07 dawoodkhan82

Hi together. First of all, sorry, @abidlabs, that I opened the PR directly. I didn't see this Issue/ Conversation. We want to chip in and provide Gradio with a UI for contributors to add translations with inlang/inlang. Please take a look as an example https://inlang.com/editor/github.com/inlang/example. or my forked Gradio project https://inlang.com/editor/github.com/jannesblobel/gradio

jannesblobel avatar Jan 27 '23 10:01 jannesblobel