(formatName: string)
| 13 | import {CompilerOptions} from './api'; |
| 14 | |
| 15 | export function i18nGetExtension(formatName: string): string { |
| 16 | const format = formatName.toLowerCase(); |
| 17 | |
| 18 | switch (format) { |
| 19 | case 'xmb': |
| 20 | return 'xmb'; |
| 21 | case 'xlf': |
| 22 | case 'xlif': |
| 23 | case 'xliff': |
| 24 | case 'xlf2': |
| 25 | case 'xliff2': |
| 26 | return 'xlf'; |
| 27 | } |
| 28 | |
| 29 | throw new Error(`Unsupported format "${formatName}"`); |
| 30 | } |
| 31 | |
| 32 | export function i18nExtract( |
| 33 | formatName: string | null, |
no outgoing calls
no test coverage detected
searching dependent graphs…