在nativescript-i18n网站shows上的文档如何使用NS 2.2及更早版本的Angular 2 rc版本进行设置:
import {I18N_PROVIDERS} from 'nativescript-i18n/angular'; import {nativeScriptBootstrap} from "nativescript-angular/application"; // (The following import is just a component designed as the main application component.) import {Explorer} from "./components/explorer/explorer"; nativeScriptBootstrap(Explorer, [ I18N_PROVIDERS ]);
但是,此设置不适用于使用Nativescript 2.3的Angular 2的最终版本。如何适应最终的Angular 2发布?