()
| 54 | } |
| 55 | |
| 56 | static get langs() { |
| 57 | // Synchronous fallback - may be empty initially |
| 58 | if (!this._cachedLangs) { |
| 59 | this.getLangs().then(langs => { |
| 60 | this._cachedLangs = langs |
| 61 | }) |
| 62 | return {} |
| 63 | } |
| 64 | return this._cachedLangs |
| 65 | } |
| 66 | |
| 67 | static createDefault() { |
| 68 | return new Translation(defaultVocabulary, true) |