benjypng / logseq-datenlp-plugin

MIT License
73 stars 5 forks source link

Others languages ? #1

Closed bepolymathe closed 2 years ago

bepolymathe commented 2 years ago

Hi,

Thanks for this plugin . It is very useful! I even think it would be ideal in different languages. Is it in your goals? Or only in English?

bepolymathe commented 2 years ago

I understand that it would be a big job. A minimal solution could be to propose that English remains the base, but in that case you would need an option to remove the English word once the parsing is done when writing in another language.

Example

image

Become

image

Where "demain" is "tomorrow" in french.

benjypng commented 2 years ago

Added support for french, dutch and japanese. Can take a look at v1.8.

demo4 !

bepolymathe commented 2 years ago

Thank you for your promptness but I have a problem on my side. I have updated to the new version but I can't get the new language settings to take into account.

  1. I open the plugin settings
  2. I put "fr" instead of "en" (default)
  3. I save the config file
  4. I restart logseq
  5. The parameters are back to "en" by default
benjypng commented 2 years ago

Hi! Apologies, this should be fixed in v1.92 in the marketplace. Can I check if you are using the plugin from the marketplace or manually?

bepolymathe commented 2 years ago

Thanks for the update. I just tried with the version 1.94 but I have the same problem. The only difference is that I have no default language (" ") instead of "en".

I install from the marketplace

benjypng commented 2 years ago

Apologies, please try v2.1 from the marketplace.

bepolymathe commented 2 years ago

OK, thanks. It works for french recognition but "parse date" insert again an english format (relatif to other issue)

image

benjypng commented 2 years ago

What does your journal page date look like?

bepolymathe commented 2 years ago

You want to say date format ?

22-01-2022

benjypng commented 2 years ago

Could you try the latest v2.5 update and see if the problem persists?

bepolymathe commented 2 years ago

I just tried it with this version. I have again the problem of saving the settings. They are not taken into account after restarting logseq...

benjypng commented 2 years ago

Could you copy and paste here what is in your settings file please?

benjypng commented 2 years ago

Refer to: #2 as language issue is resolved.