generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Change default language based on YAML data #49
Labels
enhancement
New feature or request
Comments
I understand your Requests, but you have to remember that on changing the Language the User might also need to change their API Provider (because one might not be available in that language). How would that work? |
There is no better solution, so I guess it would! |
Would you be fine with using the Values on the left side as the Language Codes for the
|
Perfect! This is what I am using.
For English I am just using `en`, but that I would choose it as default lang.
Thanks a lot!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature
As I understand, currently this plugin could automatically switch languages based on folders. Nevertheless, I have notes in Italian, English and French placed everywhere in every folder of my vault.
What I would like to have is for the plugin to read the
lang:
parameter in YAML and consequently set the language for that note.For example:
would set the language of the page in Italian.
Furthermore, it should be possible to set a default language, so that if
lang:
is not specified, it is the one chosen to be the main one.Does this fix a problem? If so, specify.
—
Did you consider other alternatives?
Right now I am using the plugin for English notes only.
Screenshots and recordings
Current folder setup, to which the YAML setup should be added:
The text was updated successfully, but these errors were encountered: