-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monorepo support for shared intl files location #335
Comments
I think it may be an option in els configuration, like:
where also, I see case where we have multiple translation packages like, and in this case, configuration may be relatively complex, I'm not sure we have to support it at this point (I'm trying to figure out options, easy-to configure by vscode) one more option - have same API with els.local.addons, to specify just entrypoints to yaml/json translations
(I like last one) |
in addition, we could consider namespace usage from https://ember-intl.github.io/ember-intl/docs/guide/addon-configs |
@void-mAlex are you using 'inputPath' config option for |
we are not for reasons that we don't want them to go through any of the build steps from the cli, but that may be a very good option for others I guess we could have that set to a value that gets overridden on any builds so they don't actually get processed and only take advantage of the go to definition feature; would take some experimentation but I can see that working as for namespace usage, I think that opens the question on what the path resolution for current syntax;
with the content: that would be equivalent to the example from #334 (comment) I don't believe namespace feature from ember-intl should/would have an impact on the path that els uses to resolve translations the more I think about it the inputPath makes the most sense as if people already have it set then els just works for them; I'm decently confident that we could make use of it as well |
@lifeart Didn't thought I have something to add, but as there are some more topics mentioned in 340 I will try to ;)
|
notes about intl support out of the box: since 'config/ember-intl.js' is also, it should fix @void-mAlex case (he could define path to translations, to allow uELS to resolve it, but "owerride" it for export to not process it on build step) // module.exports = function (/* environment */) {
const configDefaults = {
inputPath: './../node_modules/my-localization/files'
};
configDefaults.inputPath = 'undefined';
return configDefaults;
} in this case we will follow for first valid or we could execute it, passing "environment" = "development" (as we do now for also, it solve question by limiting locales, because we will use |
I'm not fan of detecting by position, because i guess someone can have code like |
hello, love the definition provider feature
regarding that, was wondering if there was a way to tell the language server that the language files are in a particular folder outside of the ember project.
we have several ember projects (within a monorepo) that share a good chunk of the translations and they are stored in the following structure
without going as far as what is likely a bespoke way of treating the separate languages (within their own folders)
would like to see a way to tell the language server, hey my yaml files are one folder up then look in
translations
The text was updated successfully, but these errors were encountered: