Hello,
I added the import to pt-br locale inside the blockly.component.ts file from the blockly-samples-master/blockly-angular:
import { Component, OnInit } from '@angular/core';
import * as Blockly from 'blockly';
import * as PtBr from 'blockly/msg/pt-br';
and the call to the setLocale just before the Blockly.inject inside ngOnInit() ...
ngOnInit() {
const blocklyDiv = document.getElementById('blocklyDiv');
Blockly.setLocale(PtBr);
Blockly.inject(blocklyDiv, {
...
... and the result is:
ERROR in src/app/blockly/blockly.component.ts(39,13): error TS2339: Property 'setLocale' does not exist on type 'typeof Blockly'.
Any clues to solve this problem? :-)
Node version: 10.16.3
Npm version : 6.0.9
Angular version: 8.1.2