How to make settings text multi-lingual
Question
Hi @artf,
We have integrated the each element settings with their elements name using below code like HEADLINE SETTINGS, COLUMN SETTINGS and so on...
/* Headline Settings */
{
name : 'Headline Settings',
open: true,
buildProps: ['background-color', 'color', 'text-align', 'font-family','font-weight', 'font-size', 'letter-spacing', 'line-height', 'width','margin-top', 'margin-left', 'padding-top', 'padding-left', 'padding-right', 'padding-bottom'],
properties:[
{
name : 'Text Align',
property: 'text-align',
type: 'radio',
defaults: 'center',
list: [
{ value : 'left', name : 'Left', className: 'fa fa-align-left'},
{ value : 'center', name : 'Center', className: 'fa fa-align-center' },
{ value : 'right', name : 'Right', className: 'fa fa-align-right'},
{ value : 'justify', name : 'Justify', className: 'fa fa-align-justify'}
],
},
So how we can make these name multi-lingual.I reference through all the discussions regarding the multi-lingual but found no results so can you please let us know how we can achieve this.
Answers (2)
You just have to set the already translated string
name: i18n[locale]['headlineSettings'],
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1232
How to change the margin from px to rem
Hi @artf, Hope you are doing fine. I have changed the margin settings from "px" to "rem" in one of the element using below code: { property...
Issue #1835
How to open up 'Settings' all the time?
I'd like make 'Settings' opened at all times by default without having users to open up manually. How'd you do that? Thank you..
Issue #1675
[Question] How to make 'Settings' has 'title', 'href' ,'title' manually?
Hi Artur, Usually, 'Settings' has 'Id' and 'Title'. However, when you click any text that has become link, 'Settings' now has 'title', 'hre...
Issue #710
Make an entire element draggable, not just the handle
I'm working on modifying the handle from draggable elements, in addition to having a handle, I'd like the entire element to be draggable. L...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.