import { Application } from 'egg' ; import { AppPluginBase } from '../../basic/AppPluginBase' ; import { AppTranslateManager } from './AppTranslateManager' ; declare module 'egg' { interface Application { translate : AppTranslateManager ; } } module . exports = ( app ) => { AppPluginBase . LoadToApp ( 'translate' , AppTranslateManager , app ) ; } ;