UNPKG

cv-dialog-sdk

Version:

Catavolt Dialog Javascript API

12 lines (10 loc) 330 B
export class CvLocale { constructor(readonly language: string, readonly country?: string) {} get langCountryString(): string { if (this.country) { return `${this.language.toLowerCase()}-${this.country.toLowerCase()}`; } else { return this.language.toLowerCase(); } } }