UNPKG

@gulibs/react-vintl

Version:

Type-safe i18n library for React with Vite plugin and automatic type inference

43 lines (40 loc) 1.02 kB
// Stub file for @gulibs/react-vintl/react-vintl-locales (CommonJS) // This file is replaced by Vite's virtual module during development/build // when the react-vintl plugin is configured /** * @fileoverview * This is a stub file that provides runtime values for the react-vintl-locales module. * In development/build, the Vite plugin replaces this with generated locale data. * * ⚠️ WARNING: This is a stub file with empty resources. * To use this library, you MUST configure the react-vintl plugin in your vite.config.ts: * * const { createReactVintlPlugin } = require('@gulibs/react-vintl/plugin') * * module.exports = { * plugins: [ * createReactVintlPlugin({ * basePath: 'src/locales' * }) * ] * } */ module.exports = { resources: { en: { default: {} } }, supportedLocales: ['en'], config: { supportedLocales: ['en'], basePath: 'src/locales', localePattern: 'directory' }, keys: [], default: { en: { default: {} } } };