How to use the generator-jhipster/generators/generator-constants.LANGUAGES function in generator-jhipster

To help you get started, we’ve selected a few generator-jhipster examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jhipster / jhipster-vuejs / test / languages.spec.js View on Github external
applicationType: 'monolith',
                    databaseType: 'sql',
                    devDatabaseType: 'h2Disk',
                    prodDatabaseType: 'mysql',
                    cacheProvider: 'ehcache',
                    authenticationType: 'jwt',
                    enableTranslation: true,
                    nativeLanguage: 'en',
                    languages: constants.LANGUAGES.map(el => el.value),
                    buildTool: 'maven',
                    clientFramework: 'Vue.js',
                    clientTheme: 'none'
                })
                .on('end', done);
        });
        constants.LANGUAGES.forEach((language) => {
            describe(`for ${language.name}`, () => {
                it('creates expected files', () => {
                    assert.file([
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/activate.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/audits.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/configuration.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/error.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/login.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/logs.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/home.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/metrics.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/password.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/register.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/sessions.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/settings.json`,
                        `${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/reset.json`,
github jhipster / jhipster-vuejs / test / languages.spec.js View on Github external
'jhipster-vuejs:languages',
                        path.join(__dirname, '../generators/languages/index.js')
                    ],
                ])
                .withPrompts({
                    baseName: 'sampleMysql',
                    packageName: 'com.mycompany.myapp',
                    applicationType: 'monolith',
                    databaseType: 'sql',
                    devDatabaseType: 'h2Disk',
                    prodDatabaseType: 'mysql',
                    cacheProvider: 'ehcache',
                    authenticationType: 'jwt',
                    enableTranslation: true,
                    nativeLanguage: 'en',
                    languages: constants.LANGUAGES.map(el => el.value),
                    buildTool: 'maven',
                    clientFramework: 'Vue.js',
                    clientTheme: 'none'
                })
                .on('end', done);
        });
        constants.LANGUAGES.forEach((language) => {

generator-jhipster

Spring Boot + Angular/React/Vue in one handy generator

Apache-2.0
Latest version published 1 month ago

Package Health Score

89 / 100
Full package analysis