Book Image

Oracle JET for Developers

By : Raja Malleswara Rao Malleswara Rao Pattamsetti
Book Image

Oracle JET for Developers

By: Raja Malleswara Rao Malleswara Rao Pattamsetti

Overview of this book

This book will give you a complete practical understanding of the Oracle JavaScript Extension Toolkit (JET) and how you can use it to develop efficient client-side applications with ease. It will tell you how to get your own customized Oracle JET set up. You'll start with individual libraries, such as jQuery, Cordova, and Require.js. You'll also get to work with the JavaScript libraries created by Oracle, especially for cloud developers. You'll use these tools to create a working backend application with these libraries. Using the latest Oracle Alta UI, you'll develop a state-of-the-art backend for your cloud applications. You'll learn how to develop and integrate the different cloud services required for your application and use other third-party libraries to get more features from your cloud applications. Toward the end of the book, you'll learn how to manage and secure your cloud applications, and test them to ensure seamless deployment.
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Internationalization and localization


Global application support can be provided by web applications by giving proper internationalization and globalization support.

The following diagram shows a list of languages supported by Oracle JET through Oracle National Language Support (NLS):

Additionally, Oracle JET offers support for over 160 locales by using the Common Locale Data Repository (CLDR), saved in the same way as locale bundles. The locale-specific information can be advised in the application in either:

  • Requiring JS configuration
  • Using the lang attribute in an HTML page
  • Using the navigator.language or navigator.userLanguage browser properties

Oracle JET framework also lets us define translation bundles for labels on the page, to populate different language-specific labels on the page dynamically.

The sample program for the translation bundle is as follows:

define({
  "root": {
    "label": "Select an application",
    "menu1": "Payroll",
    "menu2": "Business Processing",
    "menu3": "Administration...