How to use jquery to switch part of data between Chinese and English

< H2 > title text-sharp-sharp clipboard.png < / H2 >
Jan.08,2022

i18next page layer framework, js frame address: http://i18next.com/
i18next is based on the variable declared in the tag, binds the content of the language resource file, and then renders the result page.

<ul class="nav">
  <li><a href="-sharp" data-i18n="nav.home"></a></li>
  <li><a href="-sharp" data-i18n="nav.page1"></a></li>
  <li><a href="-sharp" data-i18n="nav.page2"></a></li>
</ul>

"nav": 
{    
    "home": "Home",    
    "page1": "Page One",    
    "page2": "Page Two"  
}
Menu