<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by João Tiago on Medium]]></title>
        <description><![CDATA[Stories by João Tiago on Medium]]></description>
        <link>https://medium.com/@jtiago?source=rss-1d23ae25cfb9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nelBBvYBoEvBeytX3o1Fow.jpeg</url>
            <title>Stories by João Tiago on Medium</title>
            <link>https://medium.com/@jtiago?source=rss-1d23ae25cfb9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:49:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jtiago/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Advanced Internationalization in Oracle JET]]></title>
            <link>https://medium.com/digital-transformation-research-group/advanced-internationalization-in-oracle-jet-1f41f923e2cd?source=rss-1d23ae25cfb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f41f923e2cd</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[oracle-jet]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[João Tiago]]></dc:creator>
            <pubDate>Fri, 21 Dec 2018 15:12:20 GMT</pubDate>
            <atom:updated>2020-08-03T00:55:04.775Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*0JzkWxPfdtfDiqHSWhM-VA.jpeg" /></figure><p><strong><em>Written by </em></strong><a href="https://medium.com/@carlossantos_82513"><strong><em>Carlos Santos</em></strong></a><strong><em> and </em></strong><a href="https://medium.com/@jtiago"><strong><em>João Tiago</em></strong></a></p><p>How to easily manage translations in Oracle JET applications seems to be a topic often asked by the community. This guide provides a simple yet powerful methodology to accomplish this.</p><p>Oracle JET components (based on Alta UI) fully support translations ‘out of the box’. What you need to do in essence is change the <strong>lang </strong>attribute on your &lt;html&gt; tag. This obviously does not mean that your own texts/components will be translated automatically, that’s what we aim to fix with this guide.</p><p>In order to setup support for our own translations we need to set few things:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*PntH7EZd5Gs0ItscDArOHA.png" /><figcaption>Flag pack within project</figcaption></figure><h3>1. Add a flag pack on your project</h3><p>eg, css/images/flags</p><p>In order to avoid performance issues prefer vector formats, minify and compress SVG assets, etc. In here we simply use png’s.</p><h3>2. Setup the nls folder</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*avcXChoRTuDNopRqTANxOQ.png" /><figcaption>Folder Structure for nls</figcaption></figure><p>Create a <strong>nls </strong>folder under js/resources (to match specification of scaffolded app). Add a folder to support as many languages as you like, it should match ISO specification, you can find <a href="https://www.w3schools.com/tags/ref_language_codes.asp">HTML ISO Language Code Reference here</a>.<br>Each folder should contain a l10.js file as well as l10.js file that will be your default translation file.</p><p>NOTE: The default translation file will always be accessed. Meaning you should have AT LEAST one reference to your translation string within this file, even if you didn’t ‘setup’ translation for each language you plan to support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*9YMsa9Ttc4ZG_GvnRBVUgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*hw9AWyCE0anM_WqMTSLAIg.png" /><figcaption>Default l10.js file (left image) and l10.js file for a specific language (right image)</figcaption></figure><p><em>BONUS CONTENT: Use Notepad++ functionalities or Excel’s Text to Columns to easily extract your texts and manage your translations</em></p><h3>3. Add a Select One element to your page</h3><pre>&lt;oj-select-one id=&quot;homepageLanguagePicker&quot; on-value-changed=&quot;[[<strong>setLang</strong>]]&quot; style=&quot;max-width:20em; padding-bottom: 20px&quot;&gt;<br><strong><em>&lt;!-- ko foreach: languagesSupported --&gt;</em></strong><em><br></em>&lt;oj-option value=&quot;[[langValue]]&quot;&gt;<br>&lt;span slot=&quot;startIcon&quot;&gt;<br>&lt;img data-bind=&quot;attr: {src: &#39;./css/images/flags/&#39; + <strong>langFlag </strong>+ &#39;.png&#39;}&quot; role=&quot;presentation&quot; style=&quot;vertical-align:middle&quot; /&gt;<br>&lt;oj-bind-text value=&#39;[[<strong>langName</strong>]]&#39;&gt;&lt;/oj-bind-text&gt;<br>&lt;/span&gt;<br>&lt;/oj-option&gt;<br><strong><em>&lt;!-- /ko --&gt;</em></strong><em><br></em>&lt;/oj-select-one&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*d9eiITVjL5P-F0F-0Lllvw.png" /></figure><p>We have given our element a specific id, <strong>homepageLanguagePicker</strong>, assigned a function call whenever it’s value changes (on-value-changed), <strong>setLang</strong>, this is where we will actually change the html lang.<br>Took advantage of the Knockout foreach to span multiple oj-options reading data from our JavaScript (in this example hard-coded, could be a Service call). Each &lt;oj-option&gt; will display a flag using <strong>langFlag </strong>and it’s text (also a translatable String) through <strong>langName.</strong></p><p>NOTE: You can always consider using another approach to &lt;oj-select-one&gt; using the <strong>options </strong>and <strong>value </strong>attributes instead of the KO for each approach.</p><h3>4. Add the logic in JavaScript</h3><p><strong>DISCLAIMER</strong>: In this guide we’re using <strong>ojet-accelerator </strong>package to assist development. But we will show you what is “under the hood” so you can accomplish the same result in your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*jX8SuKUyhvdBArEutXHm3Q.png" /><figcaption>languagesSupported: KO Observable Array</figcaption></figure><p>We’ve defined an Observable Array with the properties needed by our Select One, including the ISO specification for the language.</p><p>Notice how we assigned an Observable to one of our properties, and how we reference “lang-en” String defined in step 2.</p><pre><em>// List of Languages Supported<br></em>self.<strong>languagesSupported </strong>= ojet.createArray([{<br><strong>langValue</strong>: &quot;en&quot;,<br><strong>langFlag</strong>: &quot;United-States&quot;,<br><strong>langName</strong>: ojet.createText(&#39;lang-en&#39;)<br>},<br>{<br><strong>langValue</strong>: &quot;pt&quot;,<br><strong>langFlag</strong>: &quot;Portugal&quot;,<br><strong>langName</strong>: ojet.createText(&#39;lang-pt&#39;)<br>}]);</pre><p><strong>This enables you to, for example, translate an &lt;oj-table&gt; column headers configuration texts through this same mechanic, an &lt;oj-input-text&gt; placeholder, a &lt;span&gt; or &lt;oj-bind-text&gt; value, etc.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*QDRAM9uXO3-juaukz6dqcg.png" /><figcaption>ojet-accelerator’s createText(translationString): String</figcaption></figure><pre><strong>createText</strong>: function (translationString) {<br>let textObs = ko.observable(oj.Translations.getTranslatedString(translationString));<br>$(&#39;#homepageLanguagePicker&#39;).on(&#39;translateEvent&#39;, function () {<br>textObs(oj.Translations.getTranslatedString(translationString));<br>});<br>return textObs;<br>}</pre><p>This is the key takeaway for the entire process, in here we return an KO Observable that refers to the translated String within our nls files. It then listens to our custom JavaScript event ‘<strong>translateEvent’</strong> which is triggered when we change the value on our translations Select One, defined in step 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*RpLcxjN29hHhjQvl_ItN3w.png" /><figcaption>setLang: function</figcaption></figure><p>Finally the function executed on on-value-changed, setLang.<br>This function accesses oj.Config to set the Locale to our newLang (referenced in the value of our oj-option), eg, “en”. The callback triggers our custom event.</p><pre><em>// Language Selection<br></em>self.setLang = function (event) {<br>const newLang = event.detail.value;<br>ojet.ojConfig().setLocale(newLang,<br>function () {<br>$(&#39;html&#39;).attr(&#39;lang&#39;, newLang);<br><em>// Triggers an event to update other texts<br></em>jQuery(&#39;#homepageLanguagePicker&#39;).trigger(jQuery.Event(&quot;translateEvent&quot;));<br>});<br>};</pre><h3><strong>5. Final Result</strong></h3><p>Lastly here’s the final result, you not only have a nice looking Select One to manage your supported languages, but it also gets translated (much like everything else you apply createText to) within your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/1*__6MczuUy8ajPVIBr2vcmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/197/1*fnrGc4J1Ev-LTb2czlHWew.png" /></figure><p>You can find Oracle JET official documentation on internationalizing OJET applications <a href="https://docs.oracle.com/en/middleware/jet/6/develop/internationalizing-and-localizing-oracle-jet-applications1.html#GUID-041CA37D-0251-4E32-BC1E-DE272B0A0E8E">here</a></p><p><strong>For Oracle JET consulting inquiries feel free to contact me directly at joao_t332@hotmail.com</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f41f923e2cd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-transformation-research-group/advanced-internationalization-in-oracle-jet-1f41f923e2cd">Advanced Internationalization in Oracle JET</a> was originally published in <a href="https://medium.com/digital-transformation-research-group">Digital Transformation Research Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building the future of Oracle JET Ecosystem]]></title>
            <link>https://medium.com/digital-transformation-research-group/building-the-future-of-oracle-jet-ecosystem-b9bde34cc88d?source=rss-1d23ae25cfb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9bde34cc88d</guid>
            <category><![CDATA[web-components]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[oracle-jet]]></category>
            <category><![CDATA[oracle]]></category>
            <dc:creator><![CDATA[João Tiago]]></dc:creator>
            <pubDate>Fri, 14 Dec 2018 19:41:47 GMT</pubDate>
            <atom:updated>2020-08-03T00:52:19.117Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>INTRODUCTION</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*qpEeVUt1UtYDrWxhpAe0GQ.png" /></figure><p>In the past months I was introduced to Oracle JavaScript Extension Toolkit, an extensible product put together by Oracle to enable building <strong>enterprise grade front-ends</strong> in JavaScript (client-side applications) which happens to be integrated in the Oracle Cloud and seamlessly integrated in Oracle’s SaaS products such as Oracle Cloud Visual Builder (yes, you can build JavaScript front-ends with a drag-and-drop interface in the Cloud).</p><p>On an ever-changing JavaScript ecosystem, Oracle JET’s real benefits are the ability to focus on developing while Oracle takes care of leveraging popular open-source technologies for you to develop your applications using their abstractions which are based on decoupled architecture, without compromising on making your own choices to extend the toolkit.</p><p>JET includes accessibility support, template based Single Page Application, internationalization support out of the box, advanced one and two-way binding with a common model layer, powerful routing system, built-in mobile support and a rich set of UI components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U_PNEu1jSh4LS3MsgpiYpQ.png" /><figcaption>Fig 1. Oracle JET’s cookbook</figcaption></figure><p>This last, rich set of UI components, truly differentiates Oracle JET. Through their cookbook you can literally copy-paste components (based on Oracle’s Alta UI) that are well documented with examples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMeruwAOCTu2z6Mn0nvMDw.png" /><figcaption>Fig 2. Component live example embed in the cookbook</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MeSgiqk835nKAt5ovnD9uw.png" /><figcaption>Fig 3. Component detailed documentation</figcaption></figure><p>For exploring Oracle JET further and learning about its success stories, such as our own, and other resources visit <a href="http://www.oraclejet.org/">www.oraclejet.org</a></p><p><strong>SUCCESS STORY</strong></p><p>Together with a team of talented Junior developers with no past experience building enterprise front-ends using Oracle JET we’ve built a rather complex, secure and robust solution within record time.</p><p>Leveraging Oracle JET’s small learning curve and extending the toolkit with a few well tested libraries, we built increasingly more complex components of our own using the building blocks OJET already provided. This allowed us to establish a private repository of components to re-use on future project iterations.</p><h3><strong>WEB COMPONENT EXCHANGE</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*kKaiLNqDQA4n9qrf1Bs-ZA.png" /></figure><p>We’re building an <strong>open sourced community driven web component exchange </strong>to assist building Oracle JET applications even faster.</p><p>The core concept is to create a central repository for well documented web components the community would like to share. Ultimately enhancing the capabilities of building with OJET and <strong>this is where you come in!</strong></p><p>This ‘product’ has already started development and due to the versatility of OJET it’s being built both in JavaScript and TypeScript (yes, OJET fully supports TypeScript).</p><p>We also have the honor to work directly with Oracle Product Managers, who are kind enough to put ‘outside of office hours’ effort to bring it to life.</p><p><strong>THE TEAM (updated 04.01.2019)</strong></p><p><strong>Product Advisors<br>♠ORACLE</strong> John Brock <em>(Senior Manager of Product Management-Oracle)</em><br><strong> ♠ORACLE</strong> Geertjan Wielenga <em>(Senior Principal Product Manager-Oracle)</em><strong><br>Product Manager<br></strong>João Tiago<br><strong>Solution Architects<br></strong>Carlos Santos <em>(Solutions Architect-Capgemini Portugal)</em><br><strong>Developers<br>♠ACE</strong> Andrejus Baranovskis<em> (CEO-Red Samurai Consulting)<br></em>Bernardo Reis <em>(Junior Developer-Capgemini Portugal)<br></em>Florin Marcus <em>(Developer-Red Samurai Consulting)<br></em>Hamed Roknizadeh <em>(Oracle Consultant-IT-P GMBH)<br></em><strong>♠ACE</strong> José Rodrigues <em>(Business Manager-Link Consulting)<br>James Neate (Oracle PaaS Consultant-Capgemini UK)<br>John Sim (Fishbowl Solutions)<br></em>Pompei Avram <em>(Consultant-Red Samurai Consulting)<br></em><strong>♠ACE</strong> Soham Dasgupta <em>(Managing Consultant-Capgemini Netherlands)<br></em><strong>Contributors<br></strong>Rita Teixeira (UI/UX)</p><p><strong>FUNCTIONAL REQUIREMENTS</strong></p><p>The initial release will focus on the following requisites:<br>1. Platform (GitHub Sign In, Internationalization Support)<br>1.1. Profile Create/View/Edit + Joining/Adding Organization<br>1.2. Events (Hackathons, etc)<br>1.3. About (Contributors and Curators)<br>2. Web Components<br>2.1. Upload a new Web Component<br>2.2. Edit Details<br>2.3. Search in the public Exchange<br>2.4. View Details (Description, Install Instructions, Rating, Statistics, Support Policy, API Docs, Live Demo, Use Cases, Screenshots, Change Log)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*diQ_09zfjE07R5H4ZrLWog.png" /></figure><p><strong>INITIAL DRAFT</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3jri4bsRcrFTzzTFr8l5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r23U4GhxGBTNMCt1GBggMw.png" /></figure><p>The repository is available for contributors at <a href="https://github.com/jtiagodev/oraclejet-webcomponents-exchange">https://github.com/jtiagodev/oraclejet-webcomponents-exchange</a></p><p><strong>BASIC ARCHITECTURE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*ZwZQGFqtpSd0rqsF_nWgpg.png" /></figure><p><strong>PLANNING</strong></p><p>If you would like to participate in building the future of the Oracle JET ecosystem together with us feel free to contact <a href="/service/mailto:joao_t332@hotmail.com">joao_t332@hotmail.com</a></p><p>There is a community meeting planned for <strong>Thursday, 20th December 2018 at 15:00 (London time)</strong> to further discuss the concept, architecture, low fidelity prototypes and welcome new contributors.</p><p>Make sure you don’t miss it! More updates are coming soon…<br>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9bde34cc88d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-transformation-research-group/building-the-future-of-oracle-jet-ecosystem-b9bde34cc88d">Building the future of Oracle JET Ecosystem</a> was originally published in <a href="https://medium.com/digital-transformation-research-group">Digital Transformation Research Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>