dashpresshq/dashpress

View on GitHub
src/frontend/lib/crud-config/lang-domains.ts

Summary

Maintainability
D
2 days
Test Coverage
A
100%
import { msg } from "@lingui/macro";

export const LANG_DOMAINS = {
  ACCOUNT: {
    PROFILE: {
      plural: msg`Account Profile`,
      singular: msg`Account Profile`,
    },
    USERS: {
      plural: msg`Users`,
      singular: msg`User`,
    },
    PASSWORD: {
      plural: msg`Password`,
      singular: msg`Password`,
    },
    PERMISSIONS: {
      plural: msg`Role Permissions`,
      singular: msg`Role Permission`,
    },
    ROLES: {
      plural: msg`Roles`,
      singular: msg`Role`,
    },
    PREFERENCES: {
      plural: msg`Account Preferences`,
      singular: msg`Account Preferences`,
    },
  },
  INTEGRATIONS: {
    CONSTANTS: {
      plural: msg`Constants`,
      singular: msg`Constant`,
    },
    ENVIRONMENT_VARIABLES: {
      plural: msg`Environment Variables`,
      singular: msg`Environment Variable`,
    },
    CREDENTIALS: {
      plural: msg`Secrets`,
      singular: msg`Secret`,
    },
    FILE_STORAGE: {
      plural: msg`File Storage`,
      singular: msg`File Storage`,
    },
    FORM_ACTIONS: {
      plural: msg`Form Actions`,
      singular: msg`Form Action`,
    },
    ACTIONS: {
      plural: msg`Actions`,
      singular: msg`Action`,
    },
  },
  DASHBOARD: {
    WIDGETS: {
      plural: msg`Dashboard Widgets`,
      singular: msg`Dashboard Widget`,
    },
    DASHBOARDS: {
      plural: msg`Dashboards`,
      singular: msg`Dashboard`,
    },
  },
};