├── .editorconfig ├── .github └── supported-by-songtradr.md ├── .gitignore ├── .npmignore ├── .nvmrc ├── .prettierrc ├── LICENSE ├── cli.js ├── client ├── index.cjs ├── index.d.ts └── index.js ├── examples ├── via-cookie │ ├── .eslintrc │ ├── .gitignore │ ├── README.md │ ├── app │ │ ├── entry.client.tsx │ │ ├── entry.server.tsx │ │ ├── root.tsx │ │ ├── routes │ │ │ ├── _locale_switch.ts │ │ │ ├── deep │ │ │ │ └── index.tsx │ │ │ └── index.tsx │ │ └── util │ │ │ ├── i18n.server.ts │ │ │ └── i18n.tsx │ ├── locales │ │ ├── en │ │ │ ├── common.json │ │ │ └── home.json │ │ └── es │ │ │ ├── common.json │ │ │ └── home.json │ ├── package-lock.json │ ├── package.json │ ├── public │ │ └── favicon.ico │ ├── remix.config.js │ ├── remix.env.d.ts │ └── tsconfig.json └── via-url │ ├── .eslintrc │ ├── .gitignore │ ├── README.md │ ├── app │ ├── entry.client.tsx │ ├── entry.server.tsx │ ├── root.tsx │ ├── routes │ │ ├── $lang.tsx │ │ └── $lang │ │ │ ├── deep │ │ │ └── index.tsx │ │ │ └── index.tsx │ └── util │ │ └── i18n.ts │ ├── locales │ ├── en │ │ ├── common.json │ │ └── home.json │ └── es │ │ ├── common.json │ │ └── home.json │ ├── package-lock.json │ ├── package.json │ ├── public │ └── favicon.ico │ ├── remix.config.js │ ├── remix.env.d.ts │ └── tsconfig.json ├── package.json ├── readme.md ├── server ├── index.cjs ├── index.d.ts └── index.js ├── src ├── cli.ts ├── client.tsx ├── common.ts ├── factories.ts └── server.tsx └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/supported-by-songtradr.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/.github/supported-by-songtradr.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules 3 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | examples 3 | .* 4 | build.js 5 | tsconfig.json 6 | readme.md 7 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v18 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/LICENSE -------------------------------------------------------------------------------- /cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require('./dist/cli.cjs'); 4 | -------------------------------------------------------------------------------- /client/index.cjs: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/client.cjs'); 2 | -------------------------------------------------------------------------------- /client/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from '../dist/client'; 2 | -------------------------------------------------------------------------------- /client/index.js: -------------------------------------------------------------------------------- 1 | export * from '../dist/client'; 2 | -------------------------------------------------------------------------------- /examples/via-cookie/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/.eslintrc -------------------------------------------------------------------------------- /examples/via-cookie/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/.gitignore -------------------------------------------------------------------------------- /examples/via-cookie/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/README.md -------------------------------------------------------------------------------- /examples/via-cookie/app/entry.client.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/app/entry.client.tsx -------------------------------------------------------------------------------- /examples/via-cookie/app/entry.server.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/app/entry.server.tsx -------------------------------------------------------------------------------- /examples/via-cookie/app/root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/app/root.tsx -------------------------------------------------------------------------------- /examples/via-cookie/app/routes/_locale_switch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/app/routes/_locale_switch.ts -------------------------------------------------------------------------------- /examples/via-cookie/app/routes/deep/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/app/routes/deep/index.tsx -------------------------------------------------------------------------------- /examples/via-cookie/app/routes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/app/routes/index.tsx -------------------------------------------------------------------------------- /examples/via-cookie/app/util/i18n.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/app/util/i18n.server.ts -------------------------------------------------------------------------------- /examples/via-cookie/app/util/i18n.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/app/util/i18n.tsx -------------------------------------------------------------------------------- /examples/via-cookie/locales/en/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/locales/en/common.json -------------------------------------------------------------------------------- /examples/via-cookie/locales/en/home.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "This is a nested route" 3 | } 4 | -------------------------------------------------------------------------------- /examples/via-cookie/locales/es/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/locales/es/common.json -------------------------------------------------------------------------------- /examples/via-cookie/locales/es/home.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Esta es una ruta anidada" 3 | } 4 | -------------------------------------------------------------------------------- /examples/via-cookie/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/package-lock.json -------------------------------------------------------------------------------- /examples/via-cookie/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/package.json -------------------------------------------------------------------------------- /examples/via-cookie/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/public/favicon.ico -------------------------------------------------------------------------------- /examples/via-cookie/remix.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/remix.config.js -------------------------------------------------------------------------------- /examples/via-cookie/remix.env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/remix.env.d.ts -------------------------------------------------------------------------------- /examples/via-cookie/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-cookie/tsconfig.json -------------------------------------------------------------------------------- /examples/via-url/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/.eslintrc -------------------------------------------------------------------------------- /examples/via-url/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/.gitignore -------------------------------------------------------------------------------- /examples/via-url/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/README.md -------------------------------------------------------------------------------- /examples/via-url/app/entry.client.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/app/entry.client.tsx -------------------------------------------------------------------------------- /examples/via-url/app/entry.server.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/app/entry.server.tsx -------------------------------------------------------------------------------- /examples/via-url/app/root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/app/root.tsx -------------------------------------------------------------------------------- /examples/via-url/app/routes/$lang.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/app/routes/$lang.tsx -------------------------------------------------------------------------------- /examples/via-url/app/routes/$lang/deep/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/app/routes/$lang/deep/index.tsx -------------------------------------------------------------------------------- /examples/via-url/app/routes/$lang/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/app/routes/$lang/index.tsx -------------------------------------------------------------------------------- /examples/via-url/app/util/i18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/app/util/i18n.ts -------------------------------------------------------------------------------- /examples/via-url/locales/en/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/locales/en/common.json -------------------------------------------------------------------------------- /examples/via-url/locales/en/home.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "This is a nested route" 3 | } 4 | -------------------------------------------------------------------------------- /examples/via-url/locales/es/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/locales/es/common.json -------------------------------------------------------------------------------- /examples/via-url/locales/es/home.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Esta es una ruta anidada" 3 | } 4 | -------------------------------------------------------------------------------- /examples/via-url/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/package-lock.json -------------------------------------------------------------------------------- /examples/via-url/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/package.json -------------------------------------------------------------------------------- /examples/via-url/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/public/favicon.ico -------------------------------------------------------------------------------- /examples/via-url/remix.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/remix.config.js -------------------------------------------------------------------------------- /examples/via-url/remix.env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/remix.env.d.ts -------------------------------------------------------------------------------- /examples/via-url/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/examples/via-url/tsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/readme.md -------------------------------------------------------------------------------- /server/index.cjs: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/server.cjs'); 2 | -------------------------------------------------------------------------------- /server/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from '../dist/server'; 2 | -------------------------------------------------------------------------------- /server/index.js: -------------------------------------------------------------------------------- 1 | export * from '../dist/server'; 2 | -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/client.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/src/client.tsx -------------------------------------------------------------------------------- /src/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/src/common.ts -------------------------------------------------------------------------------- /src/factories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/src/factories.ts -------------------------------------------------------------------------------- /src/server.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/src/server.tsx -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xiphe/remix-polyglot/HEAD/tsconfig.json --------------------------------------------------------------------------------