(file, enc, cb)
| 172 | } |
| 173 | |
| 174 | function bufferContents(file, enc, cb) { |
| 175 | if (file.isNull()) return cb(); |
| 176 | if (file.isStream()) return this.emit('error', new PluginError('VM-i18n', 'Stream is not supported.')); |
| 177 | const extname = path.extname(file.path); |
| 178 | const type = typePatternMap[extname]; |
| 179 | if (type) extractFile(file.contents, type); |
| 180 | cb(); |
| 181 | } |
| 182 | |
| 183 | function endStream(cb) { |
| 184 | locales.load() |
nothing calls this directly
no test coverage detected