Một mục mã nguồn mở trong kho dữ liệu GitHub của TopGit: go-playground/locales, 306 sao, Go. :earth_americas: a set of locales generated from the CLDR Project which can be used independently or within an i18n package; these were built for use with, but not exclusive to https://github.com/go-playground/universal-translator
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Locales is a set of locales generated from the Unicode CLDR Project which can be used independently or within
an i18n package; these were built for use with, but not exclusive to, Universal Translator.
Features
Rules generated from the latest CLDR data, v36.0.1
Contains Cardinal, Ordinal and Range Plural Rules
Contains Month, Weekday and Timezone translations built in
Contains Date & Time formatting functions
Contains Number, Currency, Accounting and Percent formatting functions
Supports the "Gregorian" calendar only ( my time isn't unlimited, had to draw the line somewhere )
Full Tests
I could sure use your help adding tests for every locale, it is a huge undertaking and I just don't have the free time to do it all at the moment;
any help would be greatly appreciated!!!! please see issue for details.
Installation
Use go get
go get github.com/go-playground/locales
NOTES
You'll notice most return types are []byte, this is because most of the time the results will be concatenated with a larger body
of text and can avoid some allocations if already appending to a byte array, otherwise just cast as string.
These rules were generated from the Unicode CLDR Project, if you encounter any issues
I strongly encourage contributing to the CLDR project to get the locale information corrected and the next time
these locales are regenerated the fix will come with.
I do however realize that time constraints are often important and so there are two options:
Create your own locale, copy, paste and modify, and ensure it complies with the Translator interface.
Add an exception in the locale generation code directly and once regenerated, fix will be in place.
Please to not make fixes inside the locale files, they WILL get overwritten when the locales are regenerated.
License
Distributed under MIT License, please see license file in code for more details.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/go-playground/locales là nguồn chính thức.
go-playground/locales có bao nhiêu sao?
go-playground/locales có 306 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/go-playground/locales. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
go-playground/locales có phải mã nguồn mở không?
Có — go-playground/locales phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/go-playground/locales.
go-playground/locales có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho go-playground/locales. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
go-playground/locales là gì?
go-playground/locales (go-playground/locales) là dự án Go trên GitHub. Theo mô tả gốc: :earth_americas: a set of locales generated from the CLDR Project which can be used independently or within an i18n package; these were built for use with, but not exclusive to https://github.com/go-playground/universal-translator
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về locales?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về locales.