* Flattens the structure of the json locale strings and writes them out to the * dist directory. * @param {Object=} options * @return {Promise }
(options = {})
| 92 | * @return {Promise<void>} |
| 93 | */ |
| 94 | async function buildStoryLocalization(options = {}) { |
| 95 | if (options.watch) { |
| 96 | watch(LOCALES_DIR).on( |
| 97 | 'change', |
| 98 | debounce(writeStoryLocalizationFiles, watchDebounceDelay) |
| 99 | ); |
| 100 | } |
| 101 | await writeStoryLocalizationFiles(); |
| 102 | } |
| 103 | |
| 104 | module.exports = {buildStoryLocalization}; |
| 105 |
no test coverage detected