Replies: 1 comment 1 reply
-
You also can support behavior like that:
Like tamagui does with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the full functionality of
typesafe-i18n
is provided via a single npm package.So when you install the
typesafe-i18n
package, you get everything at once, which also menas you will download code that you probably will never use.In version
3.1.0
a migration topnpm workspaces
was done. This layed the groundwork of supporting such a scenario.Packages that would be offered:
@typesafe-i18n/lib
: the core to createL
,LL
andLLL
instances@typesafe-i18n/angular
: adapter for angular projects@typesafe-i18n/react
: adapter forreact
-based projects@typesafe-i18n/svelte
: adapter forsvelte
-based projects@typesafe-i18n/vue
: adapter forvue
-based projects@typesafe-i18n/parser
:typesafe-i18n
-syntax-parser, others could follow (support ICU, Fluent and other i18n message syntaxes #143)@typesafe-i18n/generator
: package that creates typesafe boilerplate code on top of@typesafe-i18n/lib
and alladapters
@typesafe-i18n/importer
: functionality to import translations from a service@typesafe-i18n/exporter
: functionality to export translations to a service@typesafe-i18n/cli
: the programm that detects your setup and runs thegenerator
By splitting the package into multiple packages, we could benefit from:
each package could contain their specific setup instructions, which would be to much for the main
README
generateonlytypes
-option)Downsides of this approach:
(the
CLI
should still auto-detect the setup and install e.g.@typesafe-i18n/svelte
for you)Beta Was this translation helpful? Give feedback.
All reactions