mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-23 19:31:03 +01:00
9 lines
284 B
JavaScript
9 lines
284 B
JavaScript
const files = require.context('.', false, /\.js$/);
|
|
const messages = {};
|
|
files.keys().forEach((key) => {
|
|
if (key === './index.js') return;
|
|
messages[key.replace(/(\.\/|\.js)/g, '')] = files(key).default;
|
|
});
|
|
const languages = Object.keys(messages);
|
|
export { messages, languages };
|