Giter VIP home page Giter VIP logo

lightranslator's Introduction

Lightranslator-光翻译

这是啥?

鉴于现在国内的翻译 app 已经丧心病狂,甚至能在里面刷短视频、买理财产品(wtf?),想做一个够简洁的翻译 web app。

这是一个基于Next.JS的超简洁翻译 web 应用,只有段落翻译和单词释义,操作简便。

功能

  1. 段落翻译:点击翻译按钮,自动将其他语言译成简体中文,中文译成英语
  2. 单词释义:点击输入框或翻译结果中的任意单词,查看详细的英语释义

使用演示

demo

使用方式

桌面端

用浏览器打开 https://lightrans.netlify.apphttps://lightrans.ptlz.me(我自己的域名)

Safari(iOS 11 以上)

点击 Safari菜单栏,再点击添加到主屏幕,使用起来与一般的 app 没有区别,且无需手动更新。

如图:

Safari add to home page

Android 等其他操作系统与浏览器

与 Safari 类似,多数主流浏览器(Firefox,Chrome 等)都有添加到桌面的功能。

示例:Firefox 演示视频

自行部署

fanyi-api.baidu.com注册一个百度翻译开发者账号,申请一个通用文本翻译 API,然后查看自己的开发者信息,记下APP ID密钥

部署的时候,对于environment variables(环境变量)Key分别设置为APP_IDKEY,对应的Value则是你自己开发者账号的APP ID密钥

祝玩得开心!

lightranslator's People

Contributors

putaolaozu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.