vuepress-reco / vuepress-plugin-kan-ban-niang

Kan-ban-niang plugin for vuepress-theme-reco or other vuepress theme.
MIT License
25 stars 6 forks source link

Bug with option API: `messages` #4

Closed titieo closed 4 years ago

titieo commented 4 years ago

Bug report

Well, I've found a small bug with option API: messages

What is actually happening?

Well, as you see below, I'm using the same configuration but the message (used to show site title) changed from English to Chinese unexpectedly: image image

Other relevant information

Here is my configuration if you want:

module.exports = {
  plugins: [
      'reading-progress',
      ['@vuepress-reco/vuepress-plugin-kan-ban-niang',
       {
      messages: {
        welcome: "Welcome to my site",
        home: "You are the apple of my eye and I want to bring you home",
        theme: "OK, I hope you love my other friends",
        close: "I will miss you. Come back soon",
        info: "Do you want to know more about me?"
      }
        },],
      ['@vuepress-reco/vuepress-plugin-bgm-player',
      {
        audios: [
          {
            name: 'Doraemon No Uta',
            artist: 'KUMIKO OUSUGI',
            url: '<iframe src="https://www.nhaccuatui.com/mh/auto/vvyHODu910KS" width="620" height="382" frameborder="0" allowfullscreen allow="autoplay"></iframe>',
            cover: 'https://gitlab.com/LocTran016/notice/-/raw/master/.vuepress/public/avatar.jpg',
          },
        ]  
      }],
  ],
}
titieo commented 4 years ago

The PR above fix this