GithubHelp home page GithubHelp logo

change-website-lang's Introduction

change-website-lang

Notice

  • Beta: Locale in AWS document https://docs.aws.amazon.com is changed from english to japanese. Before start, set the locale of the doc page to English. (hard coded as const langCode = 'ja_jp';)

About

  • Chrome extension for quickly switching between two locales on any given website.
  • The scroll position is retained when switching between locales.

demo

How to Use

  • Click on the extension icon in the Chrome toolbar to switch between locales for the current page.
  • The switch will happen seamlessly, reloading the page in the new locale.

How to Set Target URLs and Locales

  • Right-click the extension icon and select "Options". In the textarea, enter the root URL and the two locales you want to switch between for each website.
  • Each entry should be on a new line.
  • Format: Enter the root URL, followed by the two locales, each separated by a comma.
  • Please note that the locales should match exactly with the URL segment for the locale on the website.

How to install

Acknowledgement

Globe icons created by th studio - Flaticon

change-website-lang's People

Contributors

shimo164 avatar

Watchers

 avatar

change-website-lang's Issues

feat: change the locales of AWS document

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Add feature to change the locales of AWS document.

  • Open a document page. Change the url directly without using the locale menu.
  • After opening a tab, if you use a locale menu once, we cannot change the language by manual url changes. (It will be redirected.)

Describe alternatives you've considered
Manually change.

Fail to save setting

Describe issue

When update the setting of mappings. "Saved" message appears.
But it does not working on the newly registered url.

Set
https://azure.microsoft.com, en-us, ja-jp
to switch in https://azure.microsoft.com/ja-jp/pricing/details/functions/

Error message

Error handling response: TypeError: Cannot read properties of undefined (reading 'updateTargetInfo')
Context
options.html
Stack Trace
options.js:4 (updateBackgroundPage)
options.js:23 (anonymous function)

Create options page. Set host permission.

  • set host permission to broader https://
  • setting in options page.
    • read as local storage
    • set target URL and locale pattern. like https://learn.microsoft.com, '/en-us/': '/ja-jp/'

Scroll to top when reload

Now

When languages are switched, the scroll position is preserved. Same as reload now.

To be

When reload, the cursor position is on the top.

Icon is hard to see

Is your feature request related to a problem? Please describe.

Icon on the menu bar is transparent. When I use with dark mode Chrome, it's not easy to see.

image

Left: This extension. Right: Notion app for the ref.

Describe the solution you'd like

Modify the icon to be found easily even with darkmode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.