question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[2.4.1] i18n: override a single string

See original GitHub issue

Hi, kevin I was trying the all new i18n option, i want to change a string, see example -

 var formBuilderOptions = {
 i18n: {
      locale: 'en-US',
      preloaded: {
        'en-US': {
          label: 'Question',
          value: 'Default value'
        }
      }
    }
};
var $editor = $(window.document.querySelector('#form-builder-editor'));
var builder = $editor.formBuilder(formBuilderOptions);

But i ended up with messing formBuilder UI, see screenshot. screenshot from 2017-04-20 09-55-41

How do i change a single string form ‘en-US’ ? Please help.

PS. Updated to v2.4.1 but still have same issue

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
kevinchappellcommented, Apr 20, 2017

Saw this bug last night but was too late fix. Will work on it today.

0reactions
KuenzelITcommented, Jun 20, 2017

Hey,

I’m using the german translation and some label seem to be empty, like “class” or “value”. The input field is there with its content, but the label is empty. Doesn’t happen if I use the english version.

Is this the same bug?

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rails Internationalization (I18n) API - Ruby on Rails Guides
When different translation strings are needed, they can be overridden. Rails adds all .rb and .yml files from the config/locales directory to the...
Read more >
Internationalization override on Spree - ruby on rails
I installed the spree_i18n gem to support multi-language on my Spree ecommerce. I need to translate some strings differently from the originally ...
Read more >
Use a Dictionary to Customize Strings - Adobe Developer
Override parent strings for default locale​​ It is important to remember that if you generate a dictionary for your theme using the i18n...
Read more >
Developer Guide: i18n and l10n - AngularJS: API
Internationalization (i18n) is the process of developing products in such a way that they can be localized for languages and cultures easily.
Read more >
The Ultimate Guide to JavaScript Localization | Phrase
First, let's move our translations out of our main script and into JSON files, one for each locale we support. /lang/en.json. {.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found