What about internationalization? #AskPolymer -- Polycasts #33
Skills:
JavaScript Fundamentals60%
Key Takeaways
Implements internationalization in a Polymer application
Full Transcript
a speed all right pc33 take one intro marker hey there polycasters Rob here welcome back to ask polymer the show where you send in your hashtag questions and we do our best to answer them okay our first question today comes from Marco who asks what about internationalization do I have to use an external Javascript framework or is there some specific polymer solution for that so that's a really good question and one that I get all the time uh right now we have an element that will help with internationalization uh you can check it out over here it is called I 18in message it's actually written by uh Eric bman one of our team members and used on a few of our sites and basically the way it works is you take your text you wrap the i18 message tag around your text and then you give it a message ID which is synced up with a Json file that loads different language packs so that is one solution that you can use for internationalization today it's not you know the the bulletproof perfect solution for all scenarios but it is something to get you started and we're also currently working on a new set of elements called carbon elements and our hope is that for those elements sets we'll be rolling out some internationalization solutions as well so thank you for that awesome question Marco all right our next question comes from share who asks with the emphasis on mobile can Ripple and other animations be turned off for 3G and does that matter so that's a really cool question uh for something like the paper Ripple animation you actually can turn that off on your elements if you just add a no ink attribute to the element itself it will disable the Ripple so for instance if you add that to paper button it'll turn it off uh now for something like mobile what you can do is you can use an iron media query to set up a Handler to check the screen size and if it's a smaller screen you can then remove that attribute perhaps if it's a larger screen you could add it back so that way you could you know have it on desktop maybe take it away from Mobile to get kind of Maximum performance there as always you want to be measuring your performance if something does seem like a bottleneck then yeah you know use a strategy to try and remove it so thank you share for that really awesome question all right our next question comes from Mark who asks how do you generate documentation for elements and how do you document packages so to document an element what I typically do is I start with this thing called the seed element project you can check that out over here on GitHub and what that's going to do is give you a boilerplate element as well as in the index file this thing called iron component pages and iron component pages is going to read all the comments in your element itself and generate documentation for you now there's special annotations that you have to use and you can check out this style guide over here which explains the different annotations uh but if you basically work with that project as your starting point for your new elements then you're going to get documentation basically for free it's a pretty cool setup so uh definitely check out seed element and see if that meets your needs so uh thank you Mark for sending in that really cool question okay our next question comes from Nicholas who asks how do you use CSS mixins with media queries so that is an interesting question uh right now with the current limitations of the style shimming system in a media query you can consume variables however you can't set new variables or custom properties so what you can do is use an iron media query element to check the different screen sizes and when it's a smaller screen size you can call polymer's update Styles method and actually like pass in new properties that way there's actually a GitHub issue which discusses this and shows an example of how you can work around it so you can check that out over here and you know for for working with Mixon what I can do is I can throw together a little JS bin and add that to the show description so you can see how that works there as well so thank you nickus for sending in that awesome question okay our last question comes from Jonathan who asks uh could you talk a little bit about the difference between paper list box versus paper menu so yeah uh first of all way to have an Eagle Eye Jonathan and I don't even think paper list box is in our catalog yet it is up on GitHub so you're totally on the ball the way that I understand things is paper lists box is kind of like the select element when you add a multi-attribute to it so you get you know multiple things that you could choose from perhaps you want to even choose like one or two items at the same time however the uh paper menu is sort of more of like a traditional drop down menu so that would be the difference between those two uh again thank you so much for sending in that question Jonathan so that's it for today thank you everyone who sent in those awesome questions if you yourself have a question you can ping us on a social network of your choosing at # ask polymer or leave it for us down below in the comments as always thank you so much for watching and I'll see you next time [Music] up
Original Description
Internationalization (i18n) is an important feature for any large application. Today on #AskPolymer we look at i18n solutions, element documentation, and tricks for making your mobile app animations fast!
i18n-msg
https://ebidel.github.io/i18n-msg/components/i18n-msg/
seed-element
https://github.com/polymerelements/seed-element
docs style guide
http://polymerelements.github.io/style-guide/
CSS variables issue
https://github.com/Polymer/polymer/issues/2149
CSS mixin
*note* it turns out this is not supported. The engineer who told me it was is a liar and he should feel bad.
paper-listbox
https://github.com/PolymerElements/paper-listbox
Subscribe to the Chrome Developers channel at http://goo.gl/LLLNvf
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Chrome for Developers · Chrome for Developers · 25 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
▶
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Polymer Performance Patterns (The Polymer Summit 2015)
Chrome for Developers
Polymer Power Tools (The Polymer Summit 2015)
Chrome for Developers
Chrome Dev Summit 2014 – Chrome Case Studies
Chrome for Developers
Web Directions Code 2015 round up
Chrome for Developers
Maintainable Code - HTTP203
Chrome for Developers
iron-ajax… wat?! -- Polycasts #26
Chrome for Developers
The Guardian - Supercharged
Chrome for Developers
ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
Chrome for Developers
#AskPolymer: Rob answers all the questions ever -- Polycasts #27
Chrome for Developers
The Future of JavaScript - HTTP203
Chrome for Developers
Data Binding 101 -- Polycasts #28
Chrome for Developers
The Guardian part 2 - Supercharged
Chrome for Developers
The Future of Web Audio: with Chris Wilson and Chris Lowis
Chrome for Developers
Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome for Developers
Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Chrome for Developers
#AskPolymer: How do you make the show? -- Polycasts #29
Chrome for Developers
Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Chrome for Developers
Binding to Objects -- Polycasts #30
Chrome for Developers
Player FM - Supercharged
Chrome for Developers
Where’s the Designer? #AskPolymer -- Polycasts #31
Chrome for Developers
Jake Beats Wikipedia - HTTP203
Chrome for Developers
Supercharged Observers! -- Polycasts #32
Chrome for Developers
Jai's Web blog - Supercharged
Chrome for Developers
Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Chrome for Developers
What about internationalization? #AskPolymer -- Polycasts #33
Chrome for Developers
Developing for Billions (Chrome Dev Summit 2015)
Chrome for Developers
Google+ Performance Improvement Comparison
Chrome for Developers
Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Chrome for Developers
Progressive Web Apps (Chrome Dev Summit 2015)
Chrome for Developers
Instant Loading with Service Workers (Chrome Dev Summit 2015)
Chrome for Developers
Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Chrome for Developers
Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Chrome for Developers
Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Chrome for Developers
Polymer - State of the Union (Chrome Dev Summit 2015)
Chrome for Developers
Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Chrome for Developers
Introduction to RAIL (Chrome Dev Summit 2015)
Chrome for Developers
DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
Chrome for Developers
RAIL in the real world (Chrome Dev Summit 2015)
Chrome for Developers
#ChromeDevSummit talks are up - W00T! -- Polycast #34
Chrome for Developers
V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
Chrome for Developers
Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Chrome for Developers
Owning your performance: RAIL (Chrome Dev Summit 2015)
Chrome for Developers
HTTP/2 101 (Chrome Dev Summit 2015)
Chrome for Developers
Leadership Panel (Chrome Dev Summit 2015)
Chrome for Developers
Build Processes, Totally Tooling Tips (S2, Ep 5)
Chrome for Developers
Accessibility (Chrome Dev Summit 2015)
Chrome for Developers
Binding to Arrays -- Polycasts #35
Chrome for Developers
HTTP2 - HTTP203
Chrome for Developers
Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome for Developers
Call For Submissions - Supercharged
Chrome for Developers
Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Chrome for Developers
Testing AJAX with Web Component Tester -- Polycasts #37
Chrome for Developers
Slack: Extended Xmas Special - Supercharged
Chrome for Developers
Browser testing with Travis & Sauce Labs -- Polycasts #38
Chrome for Developers
Optimize for production with Vulcanize -- Polycasts #39
Chrome for Developers
Highlights from Chrome Dev Summit 2015
Chrome for Developers
Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome for Developers
Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Chrome for Developers
How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
Chrome for Developers
Colors – DevTools Tonight #0 (Pilot)
Chrome for Developers
More on: JavaScript Fundamentals
View skill →Related Reads
📰
📰
📰
📰
The Case of the Ghost Tooltip
Medium · JavaScript
How I made a scroll-scrubbed video portfolio fast (Next.js 15 + GSAP + canvas)
Dev.to · Pratham Sharma
5 Reasons HTML Is About to Change Frontend Development
Medium · Programming
5 Reasons HTML Is About to Change Frontend Development
Medium · JavaScript
🎓
Tutor Explanation
DeepCamp AI