├── .commitlintrc.json ├── .editorconfig ├── .gitattributes ├── .github ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── COMMIT_CONVENTION.md ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ ├── config.yml │ ├── feature_request.yml │ └── question.yml ├── PULL_REQUEST_TEMPLATE.md ├── SECURITY.md ├── dependabot.yml ├── labeler.yml ├── labels.yml └── workflows │ ├── auto-deprecate.yml │ ├── cleanup-cache.yml │ ├── continuous-integration.yml │ ├── dependabot-approve-and-auto-merge.yml │ ├── issue-triage.yml │ ├── label-sync.yml │ ├── lock.yml │ ├── pr-triage.yml │ ├── publish-dev.yml │ └── security.yml ├── .gitignore ├── .husky ├── .gitignore ├── commit-msg └── pre-commit ├── .npmignore ├── .prettierrc ├── .release-it.json ├── LICENSE ├── README.md ├── eslint.config.mjs ├── jest.config.json ├── package.json ├── src ├── adapters │ ├── base-localization.adapter.ts │ ├── default-localization.adapter.ts │ ├── index.ts │ └── nested-localization.adapter.ts ├── decorators │ ├── current-translate.decorator.ts │ └── index.ts ├── index.ts ├── interceptors │ ├── index.ts │ └── localization.interceptor.ts ├── interfaces │ ├── command-contex.interface.ts │ ├── index.ts │ ├── locale-resolver.interface.ts │ ├── necord-localization-options.interface.ts │ └── translate-function.interface.ts ├── necord-localization.module-definition.ts ├── necord-localization.module.ts ├── necord-localization.service.ts ├── providers │ ├── index.ts │ ├── localization-adapter.provider.ts │ └── localization-resolvers.provider.ts ├── resolvers │ ├── guild.resolver.ts │ ├── index.ts │ └── user.resolver.ts └── utils │ ├── index.ts │ └── localization-map-by-key.util.ts ├── test ├── .keep ├── application.local-spec.ts ├── default-localization.adapter.spec.ts └── localization.local-spec.ts ├── tsconfig.build.json ├── tsconfig.json └── yarn.lock /.commitlintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.commitlintrc.json -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @SocketSomeone 2 | -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /.github/COMMIT_CONVENTION.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/COMMIT_CONVENTION.md -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/ISSUE_TEMPLATE/bug_report.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/ISSUE_TEMPLATE/feature_request.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/ISSUE_TEMPLATE/question.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/SECURITY.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/labeler.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/labeler.yml -------------------------------------------------------------------------------- /.github/labels.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/labels.yml -------------------------------------------------------------------------------- /.github/workflows/auto-deprecate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/auto-deprecate.yml -------------------------------------------------------------------------------- /.github/workflows/cleanup-cache.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/cleanup-cache.yml -------------------------------------------------------------------------------- /.github/workflows/continuous-integration.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/continuous-integration.yml -------------------------------------------------------------------------------- /.github/workflows/dependabot-approve-and-auto-merge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/dependabot-approve-and-auto-merge.yml -------------------------------------------------------------------------------- /.github/workflows/issue-triage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/issue-triage.yml -------------------------------------------------------------------------------- /.github/workflows/label-sync.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/label-sync.yml -------------------------------------------------------------------------------- /.github/workflows/lock.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/lock.yml -------------------------------------------------------------------------------- /.github/workflows/pr-triage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/pr-triage.yml -------------------------------------------------------------------------------- /.github/workflows/publish-dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/publish-dev.yml -------------------------------------------------------------------------------- /.github/workflows/security.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.github/workflows/security.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | npx lint-staged 2 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.prettierrc -------------------------------------------------------------------------------- /.release-it.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/.release-it.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /jest.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/jest.config.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/package.json -------------------------------------------------------------------------------- /src/adapters/base-localization.adapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/adapters/base-localization.adapter.ts -------------------------------------------------------------------------------- /src/adapters/default-localization.adapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/adapters/default-localization.adapter.ts -------------------------------------------------------------------------------- /src/adapters/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/adapters/index.ts -------------------------------------------------------------------------------- /src/adapters/nested-localization.adapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/adapters/nested-localization.adapter.ts -------------------------------------------------------------------------------- /src/decorators/current-translate.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/decorators/current-translate.decorator.ts -------------------------------------------------------------------------------- /src/decorators/index.ts: -------------------------------------------------------------------------------- 1 | export * from './current-translate.decorator'; 2 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interceptors/index.ts: -------------------------------------------------------------------------------- 1 | export * from './localization.interceptor'; 2 | -------------------------------------------------------------------------------- /src/interceptors/localization.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/interceptors/localization.interceptor.ts -------------------------------------------------------------------------------- /src/interfaces/command-contex.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/interfaces/command-contex.interface.ts -------------------------------------------------------------------------------- /src/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/interfaces/index.ts -------------------------------------------------------------------------------- /src/interfaces/locale-resolver.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/interfaces/locale-resolver.interface.ts -------------------------------------------------------------------------------- /src/interfaces/necord-localization-options.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/interfaces/necord-localization-options.interface.ts -------------------------------------------------------------------------------- /src/interfaces/translate-function.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/interfaces/translate-function.interface.ts -------------------------------------------------------------------------------- /src/necord-localization.module-definition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/necord-localization.module-definition.ts -------------------------------------------------------------------------------- /src/necord-localization.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/necord-localization.module.ts -------------------------------------------------------------------------------- /src/necord-localization.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/necord-localization.service.ts -------------------------------------------------------------------------------- /src/providers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/providers/index.ts -------------------------------------------------------------------------------- /src/providers/localization-adapter.provider.ts: -------------------------------------------------------------------------------- 1 | export const LOCALIZATION_ADAPTER = Symbol('LocalizationAdapter'); 2 | -------------------------------------------------------------------------------- /src/providers/localization-resolvers.provider.ts: -------------------------------------------------------------------------------- 1 | export const LOCALIZATION_RESOLVERS = Symbol('LocalizationResolvers'); 2 | -------------------------------------------------------------------------------- /src/resolvers/guild.resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/resolvers/guild.resolver.ts -------------------------------------------------------------------------------- /src/resolvers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/resolvers/index.ts -------------------------------------------------------------------------------- /src/resolvers/user.resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/resolvers/user.resolver.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './localization-map-by-key.util'; 2 | -------------------------------------------------------------------------------- /src/utils/localization-map-by-key.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/src/utils/localization-map-by-key.util.ts -------------------------------------------------------------------------------- /test/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/application.local-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/test/application.local-spec.ts -------------------------------------------------------------------------------- /test/default-localization.adapter.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/test/default-localization.adapter.spec.ts -------------------------------------------------------------------------------- /test/localization.local-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/test/localization.local-spec.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/necordjs/localization/HEAD/yarn.lock --------------------------------------------------------------------------------