├── .github ├── FUNDING.yml ├── assets │ ├── cover.png │ ├── type-safe.mp4 │ └── type-safe.png └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .npmrc ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── eslint.config.js ├── package.json ├── playground ├── i18n.d.ts ├── index.ts ├── locales │ ├── en.json │ └── tr.json ├── package.json ├── tsconfig.json └── vite.config.ts ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── renovate.json ├── src ├── i18n.ts ├── index.ts ├── plugin.ts ├── types.ts ├── unplugin │ ├── core │ │ ├── generate.ts │ │ ├── jsonToTS.ts │ │ └── unplugin.ts │ ├── esbuild.ts │ ├── index.ts │ ├── nuxt.ts │ ├── rollup.ts │ ├── types.ts │ ├── vite.ts │ └── webpack.ts └── utils │ └── index.ts ├── test ├── .cache │ ├── i18n.d.ts │ └── locales │ │ ├── en.json │ │ └── tr.json ├── customPluralRules.test.ts ├── general.test.ts ├── locale-specific.test.ts ├── t.test.ts ├── transformPhrase.test.ts └── type.test.ts ├── tsconfig.json ├── tsup.config.ts └── vitest.config.ts /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/assets/cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/.github/assets/cover.png -------------------------------------------------------------------------------- /.github/assets/type-safe.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/.github/assets/type-safe.mp4 -------------------------------------------------------------------------------- /.github/assets/type-safe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/.github/assets/type-safe.png -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | .DS_Store 3 | node_modules 4 | dist 5 | package-lock.json -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/.npmrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/package.json -------------------------------------------------------------------------------- /playground/i18n.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/playground/i18n.d.ts -------------------------------------------------------------------------------- /playground/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/playground/index.ts -------------------------------------------------------------------------------- /playground/locales/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/playground/locales/en.json -------------------------------------------------------------------------------- /playground/locales/tr.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/playground/locales/tr.json -------------------------------------------------------------------------------- /playground/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/playground/package.json -------------------------------------------------------------------------------- /playground/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/playground/tsconfig.json -------------------------------------------------------------------------------- /playground/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/playground/vite.config.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | packages: 2 | - playground 3 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/renovate.json -------------------------------------------------------------------------------- /src/i18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/i18n.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/plugin.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/unplugin/core/generate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/unplugin/core/generate.ts -------------------------------------------------------------------------------- /src/unplugin/core/jsonToTS.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/unplugin/core/jsonToTS.ts -------------------------------------------------------------------------------- /src/unplugin/core/unplugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/unplugin/core/unplugin.ts -------------------------------------------------------------------------------- /src/unplugin/esbuild.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/unplugin/esbuild.ts -------------------------------------------------------------------------------- /src/unplugin/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './core/unplugin' 2 | -------------------------------------------------------------------------------- /src/unplugin/nuxt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/unplugin/nuxt.ts -------------------------------------------------------------------------------- /src/unplugin/rollup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/unplugin/rollup.ts -------------------------------------------------------------------------------- /src/unplugin/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/unplugin/types.ts -------------------------------------------------------------------------------- /src/unplugin/vite.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/unplugin/vite.ts -------------------------------------------------------------------------------- /src/unplugin/webpack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/unplugin/webpack.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /test/.cache/i18n.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/test/.cache/i18n.d.ts -------------------------------------------------------------------------------- /test/.cache/locales/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/test/.cache/locales/en.json -------------------------------------------------------------------------------- /test/.cache/locales/tr.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/test/.cache/locales/tr.json -------------------------------------------------------------------------------- /test/customPluralRules.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/test/customPluralRules.test.ts -------------------------------------------------------------------------------- /test/general.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/test/general.test.ts -------------------------------------------------------------------------------- /test/locale-specific.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/test/locale-specific.test.ts -------------------------------------------------------------------------------- /test/t.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/test/t.test.ts -------------------------------------------------------------------------------- /test/transformPhrase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/test/transformPhrase.test.ts -------------------------------------------------------------------------------- /test/type.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/test/type.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/tsup.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/productdevbookcom/ts-i18n/HEAD/vitest.config.ts --------------------------------------------------------------------------------