海外TECH |
DEV Community |
The most efficient way to internationalize your web app |
https://dev.to/itsrakesh/the-most-efficient-way-to-internationalize-your-web-app-e6d
|
The most efficient way to internationalize your web appDevelopers have had a lot of trouble with localization It can be difficult at times to create and manage localization strings deal with external libraries and more What about having a one stop shop for managing everything and making translation work easier Let s get startedI often write about amazing Open Source projects Today I d like to introduce you to Tolgee another fantastic Open Source tool Tolgee is a one stop shop for project localization Tolgee eliminates the requirement to choose an in library editor and platform Everything you need to localize your project is included Let s look at how you may get the most out of Tolgee in this article Creating a project in TolgeeStep Open the Tolgee app You can join using your email and password or you can immediately authenticate your account through Github Step You will then be able to see the projects dashboard click on ADD located at the top right corner of that dashboard Step Name your project choose the owner add at least one language choose base language and click save Your project will be ready Get a sample projectRead this section if you are just trying out Tolgee If you already have a project you can skip this Download a simple HTML and CSS template by clicking here View the HTML file in your browser The template should look like this At the moment this website is only available in English Let s use Tolgee to add translations Integrating with tolgeeLet s start by creating an API key for our integration Navigate to the API keys dashboard in Tolgee To generate a new API key click the button at the bottom You can choose between many scopes here Scopes help you manage your integration more effectively This article contains more information about managing API keys For the time being pick all and click Save Integrate tolgee in your project Go to the Integrate page of your tolgee project If you obtained the template from a previously shared link select Web otherwise select whichever framework your project is built with Then choose your freshly created API key Now launch any IDE and open your project Make a file called index js in the project s root directory This file contains the tolgee integration code Open the index html file and put the following tags above the closing body tag before saving your modifications lt script src tolgee core dist tolgee umd js gt lt script gt lt script src tolgee ui dist tolgee ui umd js gt lt script gt lt script src index js gt lt script gt Open the index js file and paste the following code replacing YOUR API KEY with your API key and then save the modifications index jsconst Tolgee IcuFormatter window tolgee core const tg Tolgee use IcuFormatter init apiUrl you should never leak your API key remove it in for production publicly accessible site apiKey YOUR API KEY in production mode this is where your exported translations are loaded from filesUrlPrefix in defaultLanguage en inputPrefix inputSuffix watch true ui window tolgee ui UI tg run Create translationsYou can create translations for words by surrounding them with two curly braces For example Hello World Now go ahead and put all the sentences and words that you want to translate in curly braces Now go to your browser and refresh the page If you ALT OPTION click on any word or sentence the Tolgee UI will pop up allowing you to modify or add translations immediately Your tolgee project will save all data Here is my translated web page All of your translations can be found in your Tolgee project dashboard So that you can edit translations directly from your Tolgee project dashboard In context translation on production applicationTolgee provides an opportunity to add edit translations to a production application with the in context feature PrerequisitesA production web application that integrates the Tolgee SDK Tolgee account and access to the project Tolgee extensionInstall Tolgee Tools chrome extension After installing you can access the extension by clicking on the tolgee icon Using extensionStart your live website Launch the Tolgee extension Provide API url Self hosted Tolgee URL or if you are using Tolgee platform then fill API key The API key of your Tolgee project Now ALT OPTION click on any string to open Tolgee UI In the UI add or edit translations That s it Tolgee is amazing right Share your opinion on Tolgee in the comments Did you find this helpful Follow for more |
2022-07-31 17:40:50 |
Apple |
AppleInsider - Frontpage News |
OtterBox 2-in-1 Charging Station with MagSafe review: Compact fast charging for iPhone & Apple Watch |
https://appleinsider.com/articles/22/07/31/otterbox-2-in-1-charging-station-with-magsafe-review-compact-fast-charging-for-iphone-apple-watch?utm_medium=rss
|
OtterBox in Charging Station with MagSafe review Compact fast charging for iPhone amp Apple WatchThe new OtterBox in Charging Station with MagSafe has a clean Apple like design with fast charging support for Apple Watch Series The OtterBox in charging station can power your iPhone and Apple WatchApple has been slow to approve devices that support fast charging of the Apple Watch as well as MagSafe We ve only seen a handful of devices from Nomad Belkin and Mophie with that support Read more |
2022-07-31 18:00:18 |
ニュース |
@日本経済新聞 電子版 |
中国景況感「50」割れ・NPT議長・AIドラレコ
https://t.co/jnzYkJvMmO |
https://twitter.com/nikkei/statuses/1553797056937881601
|
議長 |
2022-07-31 17:37:41 |
ニュース |
BBC News - Home |
Commonwealth Games: England cyclist Matt Walls and spectators injured in horrifying crash |
https://www.bbc.co.uk/sport/commonwealth-games/62369932?at_medium=RSS&at_campaign=KARANGA
|
Commonwealth Games England cyclist Matt Walls and spectators injured in horrifying crashEngland cyclist Matt Walls is released from hospital after a terrifying crash in which both he and his bike flew into the crowd |
2022-07-31 17:42:11 |
ニュース |
BBC News - Home |
Beirut: The moment part of the port grain silos collapsed caught on camera |
https://www.bbc.co.uk/news/world-middle-east-62371657?at_medium=RSS&at_campaign=KARANGA
|
explosion |
2022-07-31 17:47:44 |
ニュース |
BBC News - Home |
Euro 2022: Lina Magull equalises for Germany against England |
https://www.bbc.co.uk/sport/av/football/62372234?at_medium=RSS&at_campaign=KARANGA
|
wembley |
2022-07-31 17:51:30 |
ニュース |
BBC News - Home |
England v South Africa: Shamsi takes 5-24 as hosts thumped by 90 runs to lose T20 series |
https://www.bbc.co.uk/sport/cricket/62369453?at_medium=RSS&at_campaign=KARANGA
|
England v South Africa Shamsi takes as hosts thumped by runs to lose T seriesA dismal batting display saw a pitiful England suffer a run defeat in the deciding Twenty against South Africa to lose the series |
2022-07-31 17:44:06 |
ニュース |
BBC News - Home |
Euro 2022: England lead final after superb Ella Toone lob |
https://www.bbc.co.uk/sport/av/football/62372230?at_medium=RSS&at_campaign=KARANGA
|
frohms |
2022-07-31 17:32:27 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
医師が断言する「糖質制限ダイエットが医学的に優れている理由」【書籍オンライン編集部セレクション】 - 医者が教えるダイエット 最強の教科書 |
https://diamond.jp/articles/-/306896
|
思い込み |
2022-08-01 02:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【神の領域か】「意識」がハード・プロブレムと呼ばれる理由 - ダマシオ教授の教養としての「意識」 |
https://diamond.jp/articles/-/307243
|
領域 |
2022-08-01 02:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【実践・販促テクニック】強者に負けない弱者の販促(1)!局地戦編 - 「A4」1枚チラシで今すぐ売上をあげるすごい方法 |
https://diamond.jp/articles/-/306906
|
|
2022-08-01 02:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【日本再生のカギ】未来の世界を追体験する、トランスフォーメーション思考とは? - 起業大全 |
https://diamond.jp/articles/-/305904
|
【日本再生のカギ】未来の世界を追体験する、トランスフォーメーション思考とは起業大全「なぜ、日本ではユニコーン企業がなかなか出てこないのか」。 |
2022-08-01 02:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【Twitterフォロワー30万人超の精神科医が教える】 心がぐっと穏やかになるたった2つの原則 - 精神科医Tomyが教える 1秒で不安が吹き飛ぶ言葉 |
https://diamond.jp/articles/-/306932
|
【Twitterフォロワー万人超の精神科医が教える】心がぐっと穏やかになるたったつの原則精神科医Tomyが教える秒で不安が吹き飛ぶ言葉増刷を重ねて好評多々の感動小説『精神科医Tomyが教える心の荷物の手放し方』の出発点となった「秒シリーズ」の第弾『精神科医Tomyが教える秒で不安が吹き飛ぶ言葉』から、きょうのひと言現代物理学の父ともいわれるアイザック・ニュートンは、すべてのものが互いに引き合う力引力を持っているという万有引力の法則で有名ですが、「運動の第法則」と呼ばれる「作用・反作用の法則」でも知られています。 |
2022-08-01 02:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「会社を辞めずにブログで稼ぐ」ための超重要な心がまえ - だから、この本。 |
https://diamond.jp/articles/-/307301
|
心がまえ |
2022-08-01 02:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
大成長株はどんな時でも必ずある!“株の神様”は日常生活の中から10倍株を探す! - めちゃくちゃ売れてる株の雑誌ザイが作った「株」入門 |
https://diamond.jp/articles/-/304033
|
日常生活 |
2022-08-01 02:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【就職したことがないのに株式投資で4.5億円】 個人投資家が最低限押さえておきたい3つの指標 - 賢明なる個人投資家への道 |
https://diamond.jp/articles/-/306954
|
【就職したことがないのに株式投資で億円】個人投資家が最低限押さえておきたいつの指標賢明なる個人投資家への道株式投資歴年以上の専業投資家『賢明なる個人投資家への道』の著者・かぶは、中学年生のころから体育のジャージ姿で地元の証券会社に通い詰め、中高年の投資家にかわいがられ、バブル紳士にはお金儲けのイロハを教えてもらった。 |
2022-08-01 02:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【現役サラリーマンが株式投資で2.5億円】 40代で2億貯めた男の 超シンプルな「会社四季報」活用法 - 割安成長株で2億円 実践テクニック100 |
https://diamond.jp/articles/-/306674
|
【現役サラリーマンが株式投資で億円】代で億貯めた男の超シンプルな「会社四季報」活用法割安成長株で億円実践テクニック仕事がつらすぎて定年まで働くなんて無理……そうだ、生涯賃金億円を株式投資で稼いでしまおう そう決意した入社年目、知識ゼロの状態から株式投資を始めた『割安成長株で億円実践テクニック』の著者・現役サラリーマン投資家の弐億貯男氏。 |
2022-08-01 02:10:00 |
海外TECH |
reddit |
[Charania] NBA legend Bill Russell has passed away peacefully at the age of 88. RIP. |
https://www.reddit.com/r/nba/comments/wctoa4/charania_nba_legend_bill_russell_has_passed_away/
|
Charania NBA legend Bill Russell has passed away peacefully at the age of RIP submitted by u SDas to r nba link comments |
2022-07-31 17:12:07 |
コメント
コメントを投稿