• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

vmware/singleton: A service that provides support for Software Internationalizat ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

vmware/singleton

开源软件地址(OpenSource Url):

https://github.com/vmware/singleton

开源编程语言(OpenSource Language):

Java 99.1%

开源软件介绍(OpenSource Introduction):

Singleton

A service that provides support for Software Internationalization and Localization

Introduction

Singleton is an open-source application for streamlining software globalization. It standardizes and simplifies software application globalization – not just in L10n, but in i18n too.

Singleton was originally developed under the R&D Operations and Central Services (ROCS) team in VMware. The core application is written using the Java™ programming language. Client-side code implementation is also available – in JavaScript (Angular, AngularJS and NodeJS web frameworks), C#, and Java™ programming languages. While VMware continues to lead development and maintenance of Singleton, the organization has decided to make it available to the open source community. In May 2019, VMware has decided to release an open-source repository in GitHub. We invite you to collaborate with us to enrich Singleton's resources and help organizations that will adopt it thrive.

How does it work?

The L10n capabilities of Singleton decouple localized resources from the application software. Singleton delivers a web service that provides an API for sending source artifacts for translation. These artifacts are processed externally, and localized resources are then embedded into the Singleton Service. L10n functions in Singleton are separated from the core application, which makes it possible to update or add new language support independently from the core application's release cycle – a requirement for fast-paced, agile releases as well as the SaaS world. Singleton's interoperability with multiple applications results to a simpler, more consistent quality of L10n across the board.

The i18n capabilities of Singleton eliminate the need for developers to learn different APIs for i18n across technologies and programming languages. It acts as an abstraction layer that provides consistent i18n format (e.g. date, time, number, and currency) to various applications that may be written in different programming languages. Its web service API exposes REST endpoints for i18n, which naturally provides abstraction across multiple clients. This allows for a programming language–agnostic i18n implementation, significantly reducing the implementation effort of software developers, allowing them to focus on implementing new features and innovation. It also allows for consistent quality of i18n.

Features

  • Singleton Core API - RESTful web services for delivering localized resources.
  • Source Collection - RESTful web service to collect source text that are to be translated. To use this feature, the Localization Manager has to be installed in addition to the service installation described in the succeeding section. See User Guide for details.
  • Pseudo-translation - a way to test product compatibility with locale when translated resources are not yet available. It uses auto-generated text for testing various aspects of localization readiness, including character set support, UI design, and hard coding. See User Guide for details.

Upcoming features

  • (To Do)

Prerequisites

  • Java 8 (Java 9+ are not supported, will get compiler issue)
  • Git

Building from source code

Clone the repository using Git.

git clone https://github.com/vmware/singleton.git
Or
git clone [email protected]:vmware/singleton.git

Go to singleton/g11n-ws to run a build using Gradle.

cd singleton/g11n-ws
./gradlew build

Jar files will be generated inside the following location:

singleton/publish (Eg. singleton/publish/singleton-0.1.0.jar)

To start using Singleton Service

Navigate to singleton/publish and run the Spring Boot main application.

cd ../publish
java -jar singleton-0.1.0.jar

A user interface for testing all available API endpoints will be available in the following URL:

https://localhost:8090/i18n/api/doc/swagger-ui.html

or

http://localhost:8091/i18n/api/doc/swagger-ui.html

Sample translation resources will be in the following location:

singleton/l10n/bundles

Use the following as URI/request parameters to test the API. These parameters come from the sample translation resources.

productName: "SampleProject"
version: "1.0.0"
component: "component1" or "component2"
locale: "en", "ja" or "es"

Singleton Clients

Singleton also provides client bindings to talk with Singleton Service.

Online Resources

We welcome discussions about and contributions to the project!

License

Singleton is released under EPL v2.0 license.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap