UNPKG

@gulibs/react-vintl

Version:

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

41 lines (34 loc) 1.01 kB
// Stub file for @gulibs/react-vintl/react-vintl-locales // 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: * * import { createReactVintlPlugin } from '@gulibs/react-vintl/plugin' * * export default defineConfig({ * plugins: [ * createReactVintlPlugin({ * basePath: 'src/locales' * }) * ] * }) */ export const resources = { en: { default: {} } }; export const supportedLocales = ['en']; export const config = { supportedLocales: ['en'], basePath: 'src/locales', localePattern: 'directory' }; export const keys = []; export default resources;