未加星标

Build a Localized Application in 4 Steps

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二05 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏
Build a Localized Application in 4Steps
Build a Localized Application in 4 Steps

In today’s technology landscape, the effects of Globalization are seen everywhere ― the ability to buy products from most countries, interact with business partners from another continent (virtually), and even the real-time social media following of the news, regardless of where it took place. In the landscape of Globalization, the shift in focus has spun back around to hyper-local communities of consumers through a term called “Localization”.

While the words being thrown around are lofty and larger topics to discuss, for the purposes of this blog, Localization will be characterized as serving the same original content to numerous consumers over different geographies in their specified localized language. The same content can feel like a tailored experience when localized properly.

Today I will be demonstrating how to build a basic example of a localized application with content powered by the Cosmic JS CMS API . Adding localization to your Cosmic JS object types allows you to add versions of your content in different languages and locales by using simple Ajax requests to switch content out between the various geographies. The Localization Example App that I will be using is a content-ready web application from Cosmic JS .


Build a Localized Application in 4 Steps

I’ll be using Cosmic JS for this example app. Cosmic JS is an API-first CMS that makes managing and building websites and applications faster and more intuitive. By decoupling content from code, Cosmic JS empowers developer flexibility while ensuring content editors can plan and deploy content as it best suits them. We’ll be using Cosmic JS to install our example app, deploy and make content updates moving forward from the cloud-based Content Management Platform .


Build a Localized Application in 4 Steps

If you haven’t already, get started by Signing Up for Cosmic JS . Helpful resources are provided below to streamline your development operations.

Localization Example App Page

Localization Example App Demo

Localization Example App Codebase on GitHub

Video Tutorial: Localization 1. Create a NewBucket
Build a Localized Application in 4 Steps

Your bucket’s name is the name of your website, project, client or web application that you are building. I named mine “Localization” to remain concise for our example blog.

2. Install the Localization Example Application
Build a Localized Application in 4 Steps

Once you’ve signed up and named your bucket, you’ll be prompted to start from scratch or “see some apps”. For this blog I simply clicked the right button to “see some apps” so that I could begin the installation process for the Cosmic JS Localization Example App.

App Installation Options
Build a Localized Application in 4 Steps

Cosmic JS gives you the ability to filter between programming languages such as Node.js ,php , React , AngularJS and more.


Build a Localized Application in 4 Steps

Simply click “Install” underneath the Localization Example icon to get started, or visit the Cosmic JS Apps Page .


Build a Localized Application in 4 Steps
3. Deploy toWeb
Build a Localized Application in 4 Steps

I clicked “Deploy to Web”. I can then edit Objects while my web application is deploying. You will receive an email confirming the deployment of your web application. If you encounter any issues during deployment, you may be routed to the Cosmic JS Troubleshooting Page .

Confirm Deploy Location andBranch
Build a Localized Application in 4 Steps
Deploy Branch Confirmation Modal
Build a Localized Application in 4 Steps

I’m drawing from a repo, my branch is clarified and I have a deployed location that matches my slug / bucket name that I made in Step 1.

Deploy, DeployAway
Build a Localized Application in 4 Steps

A little reassurance that you’ll soon be up, alive and well on the web.:)

4. Edit GlobalObjects
Build a Localized Application in 4 Steps

Now you can edit Global Objects, Files, Users, Media and more. Editing is a dream come true in the Cosmic JS Dashboard. To read more about how Cosmic JS was built with editing content in mind, read Building With the Content Editor in Mind .

App Deployment Confirmation

You’ll receive an email confirming your deployed web application, as well as links and instructions for accessing your live application and managing its content thereafter. It’s as easy as signing up, creating a new bucket, installing the web application(s), edit objects and deploy! I get my confirmation email to access my web application and also see my options for bucket upgrades like custom domains, one-click SSL, webhooks and localization.

Cosmic JS is an API-first cloud-based content management platfor

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

主题: GitReactAngularJSAjaxNode.jsPHPGitHub
分页:12
转载请注明
本文标题:Build a Localized Application in 4 Steps
本站链接:http://www.codesec.net/view/524068.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(60)