angular icon indicating copy to clipboard operation
angular copied to clipboard

Show label fields dynamically or localization

Open swathitallam opened this issue 8 years ago • 5 comments

Let's say I have a textbox with label as User Name, I want to change this label dynamically based on user browser settings. If it is en-US, I need to display 'User Name' and if it is 'fr-ca', I need to display in french.

I already have an API which does translation but I am having difficulty in how to call API method for textbox labels before even form renders to user.

Can you please help me with this.

swathitallam avatar Jul 24 '17 12:07 swathitallam

@swathitallam There is i18n on formio, you could check this example: http://formio.github.io/formio.js/app/examples/language.html Please, let us know if it works for you.

YuryRybakSoftensity avatar Jun 14 '18 09:06 YuryRybakSoftensity

Hi @travist and @YuryRybakSoftensity I am facing a similar issue. Is there any way to take the label translations input directly from the user while adding any component to the form?

Like add more input fields for label translations: Label --> Default Language (en) Label ja --> japanese Label sp --> Spanish

and so on...

Screen Shot 2020-05-29 at 12 55 48

Any help would be appreciated!!!

jyoti0291 avatar May 29 '20 07:05 jyoti0291

Closed due to no activity. If the issue is still relevant, please reopen

HannaKurban avatar Aug 31 '23 13:08 HannaKurban

Hi @travist and @YuryRybakSoftensity I am facing a similar issue. Is there any way to take the label translations input directly from the user while adding any component to the form?

Like add more input fields for label translations: Label --> Default Language (en) Label ja --> japanese Label sp --> Spanish

and so on...

Screen Shot 2020-05-29 at 12 55 48

Any help would be appreciated!!!

Hi sorry for bothering but did you find the solution for this? Could you share your solution? thanks.

CrazyTrunk avatar Jan 20 '25 07:01 CrazyTrunk

"Is there any way to take the label translations input directly from the user while adding any component to the form? Like add more input fields for label translations" You would need to create a custom component if you want to add more input fields for label translations. Here is some documentation on how to create custom components https://help.form.io/faq/tutorials-and-workflows/custom-component

ZenMasterJacob20011 avatar Apr 28 '25 20:04 ZenMasterJacob20011