paraglide-js preview feedback thread #1464
Replies: 9 comments 41 replies
-
Should paraglide enforce namespaces?Monorepos will run into the problem of shared projects. Importing from a non-namespaced path like
// forbidden import because no namespace is set
import * as m from "@inlang/paraglide-js/messages"
// only allowed import schema
import * as m form "@inlang/paraglide-js/{namespace}/messages" Pros
Cons
Current behaviorThe compile command throws if two different projects are compiling into the same namespace which can be the default |
Beta Was this translation helpful? Give feedback.
-
Should a message function return a fallback?From https://discord.com/channels/897438559458430986/1163504297577812179/1163792775003766874 |
Beta Was this translation helpful? Give feedback.
-
Better API name for
|
Beta Was this translation helpful? Give feedback.
-
I've put my adaptation of an adapter into Gist (using these for the first time). Here's a link in case it's useful |
Beta Was this translation helpful? Give feedback.
-
When I'm working in the main |
Beta Was this translation helpful? Give feedback.
-
Currently integrating
// lint-staged.config.js
export default {
"project.inlang.json": "npx @inlang/cli project validate",
};
For now that's all I am interested in. I just started working on integrating and now I'll migrate all my t10s from raw strings in components to a UPD:
Maybe we could create separate thread where we could discuss must-have features for our first adapters? Because for me it's not really related to the paraglide API itself and doesn't fit into the feedback thread. First things that come to mind is configuring: "persistence strategy": cookies, localStorage; opt-in routing support: translations for url part; probably adapter will require somewhat prop to know in which environment it would run: SSR? SSG? SPA? which will affect on it's behavior; where and how to get translation messages: are they located in some server and we need to |
Beta Was this translation helpful? Give feedback.
-
Is there currently support for using paraglide together with a sveltekit adapter-static project? I get some wierd behaviour when trying to change language tag, it navigates to the correct page but removes the "/en/" part. |
Beta Was this translation helpful? Give feedback.
-
Is there a planned release date for a stable version? We are currently experiencing som troubles with our internationalisation library and would like to switch but only after it has had a 1.0 release. |
Beta Was this translation helpful? Give feedback.
-
Did you consider using constants for strings that don't have placeholders? There is no need to pass params in this situation and the code will be cleaner without (). |
Beta Was this translation helpful? Give feedback.
-
Context
This discussion serves as feedback collection on the pre-release of paraglide js.
Use 👍 and 👎 to indicate whether a proposal should be adopted.
Things that are yet to be released
See issue list #1439
How to get started with the preview
Watch this 📺 video
Documentation
Example SvelteKit project
Example SvelteKit i18n routing project
Beta Was this translation helpful? Give feedback.
All reactions