Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fluent/langneg

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluent/langneg - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

15

CHANGELOG.md
# Changelog
## @fluent/langneg 0.5.0 (July 2, 2020)
- Remove the `compat.js` build and compile everything to ES2018. (#472)
TypeScript source code is now compiled to ES2018 files in the `esm/`
directory. These files are then bundled into a single `index.js` UMD file
without any further transpilation.
The `compat.js` build (available as `@fluent/langneg/compat`) was removed.
Please use your own transpilation pipeline if ES2018 is too recent for
your project.
Refer to https://github.com/projectfluent/fluent.js/wiki/Compatibility
for more information.
## @fluent/langneg 0.4.0 (March 31, 2020)

@@ -4,0 +19,0 @@

2

esm/subtags.js

@@ -52,3 +52,3 @@ import { Locale } from "./locale";

export function getLikelySubtagsMin(loc) {
if (likelySubtagsMin.hasOwnProperty(loc)) {
if (Object.prototype.hasOwnProperty.call(likelySubtagsMin, loc)) {
return new Locale(likelySubtagsMin[loc]);

@@ -55,0 +55,0 @@ }

@@ -1,2 +0,2 @@

/* @fluent/langneg@0.4.0 */
/* @fluent/langneg@0.5.0 */
(function (global, factory) {

@@ -58,3 +58,3 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

function getLikelySubtagsMin(loc) {
if (likelySubtagsMin.hasOwnProperty(loc)) {
if (Object.prototype.hasOwnProperty.call(likelySubtagsMin, loc)) {
return new Locale(likelySubtagsMin[loc]);

@@ -61,0 +61,0 @@ }

{
"name": "@fluent/langneg",
"description": "Language Negotiation API for Fluent",
"version": "0.4.0",
"version": "0.5.0",
"homepage": "https://projectfluent.org",

@@ -6,0 +6,0 @@ "author": "Mozilla <l10n-drivers@mozilla.org>",

@@ -1,9 +0,10 @@

# @fluent/langneg
# @fluent/langneg ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/langneg/badge.svg)
`@fluent/langneg` is an API for negotiating languages. It's part of Project
Fluent, a localization framework designed to unleash the expressive power of
the natural language.
`@fluent/langneg` provides an API for negotiating languages. It's part of
[Project Fluent][]. Its main function is to provide functionality around the
[Intl.Locale][] API with a focus on language negotiation, matching and
selection.
It's main function is to provide functionality around the [Intl.Locale][] API
with a focus on language negotiation, matching and selection.
[Project Fluent]: https://projectfluent.org
[Intl.Locale]: https://github.com/tc39/proposal-intl-locale

@@ -90,12 +91,1 @@

the application supports `en-GB` and `en-US`.
## Learn more
Find out more about Project Fluent at [projectfluent.org][], including
documentation of the Fluent file format ([FTL][]), links to other packages and
implementations, and information about how to get involved.
[projectfluent.org]: https://projectfluent.org
[FTL]: https://projectfluent.org/fluent/guide/
[Intl.Locale]: https://github.com/tc39/proposal-intl-locale
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc