Hi
I tried use lit-translate but only works in typescript environment and all
the application to translate is writed in javascript :( :(
On Thursday, February 7, 2019 at 7:25:34 PM UTC-3, Justin Fagnani wrote:
>
> app-localize just wraps format.js. You'd be bringing in a lot of Polymer
>
I tried
But I have an error with the mixin beacuse is waiting a PolymerElement
instead a Litelement
updating-element.ts:500 Uncaught TypeError: Cannot read property 'forEach'
of undefined
at HTMLElement._saveInstanceProperties (updating-element.ts:500)
at HTMLElement.initialize
app-localize just wraps format.js. You'd be bringing in a lot of Polymer
weight just for that. I'd try to use format.js directly or something
lit-html specific like https://www.npmjs.com/package/@appnest/lit-translate
On Thu, Feb 7, 2019 at 1:44 PM wrote:
> try this:
>
>
> // Import
try this:
// Import AppLocalizeBehavior
import {AppLocalizeBehavior} from '@polymer/app-localize-behavior';
// Import a utility class to treat legacy behaviors as mixins
import {mixinBehaviors} from '@polymer/polymer/lib/legacy/class';
class Editor extends
could Anyone resolve this issue?
On Sunday, July 22, 2018 at 11:58:42 AM UTC-3, dokfile...@gmail.com wrote:
>
> Hi All,
>
> Have any way to attache a behaviour in (LitElement)
> lit-element, I want use : app-localize-behavior
> (https://www.polymer-project.org/3.0/toolbox/localize) to localize a