laraveltranslations
Version:
Package for load Laravel translations into JS
31 lines (24 loc) • 571 B
TypeScript
declare class LaravelTranslations {
constructor(options?: Options)
public build(): LangObject;
}
export interface Options {
dir: (string|DirObject)[],
files?: [string],
json?: boolean,
php: boolean,
parameters?: string
}
export interface DirObject {
path: string,
namespace? : string
namespaceFromPath? : string
}
export interface ParseDir {
path: string,
namespace? : string|null
}
export interface LangObject {
[key:string]: string|LangObject
}
export default LaravelTranslations;