Skip to content

Commit 34f7c0f

Browse files
committed
@fluent/langneg 0.3.0
1 parent d2e2524 commit 34f7c0f

File tree

6 files changed

+23
-20
lines changed

6 files changed

+23
-20
lines changed

fluent-langneg/.esdoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"source": "./src",
3-
"destination": "../html/fluent-langneg",
3+
"destination": "../html/langneg",
44
"plugins": [
55
{
66
"name": "esdoc-standard-plugin"

fluent-langneg/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
fluent-langneg.js
2-
compat.js
1+
/index.js
2+
/compat.js

fluent-langneg/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## @fluent/langneg 0.3.0 (July 25, 2019)
4+
5+
- Rename `fluent-langneg` to `@fluent/langneg`.
6+
37
## fluent-langneg 0.3.0 (July 25, 2019)
48

59
- Deprecate `fluent-langneg` in favor of `@fluent/langneg`.

fluent-langneg/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
# fluent-langneg
1+
# @fluent/langneg
22

3-
`fluent-langneg` is an API for negotiating languages. It's part of
4-
Project Fluent, a localization framework designed to unleash
5-
the expressive power of the natural language.
3+
`@fluent/langneg` is an API for negotiating languages. It's part of Project
4+
Fluent, a localization framework designed to unleash the expressive power of
5+
the natural language.
66

7-
It's main function is to provide functionality around the
8-
[Intl.Locale][] API with a focus
9-
on language negotiation, matching and selection.
7+
It's main function is to provide functionality around the [Intl.Locale][] API
8+
with a focus on language negotiation, matching and selection.
109

1110

1211
## Installation
1312

14-
`fluent-langneg` can be used both on the client-side and the server-side.
13+
`@fluent/langneg` can be used both on the client-side and the server-side.
1514
You can install it from the npm registry or use it as a standalone script.
1615

17-
npm install fluent-langneg
16+
npm install @fluent/langneg
1817

1918

2019
## How to use
2120

2221
```javascript
23-
import { negotiateLanguages } from 'fluent-langneg';
22+
import { negotiateLanguages } from '@fluent/langneg';
2423

2524
const supportedLocales = negotiateLanguages(
2625
navigator.languages, // requested locales
@@ -30,7 +29,7 @@ const supportedLocales = negotiateLanguages(
3029
```
3130

3231
The API reference is available at
33-
https://projectfluent.org/fluent.js/fluent-langneg.
32+
https://projectfluent.org/fluent.js/langneg.
3433

3534
## Strategies
3635

fluent-langneg/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
PACKAGE := fluent-langneg
1+
PACKAGE := @fluent/langneg
22
GLOBAL := FluentLangNeg
33

44
include ../common.mk
55

6-
build: $(PACKAGE).js compat.js
6+
build: index.js compat.js
77

8-
$(PACKAGE).js: $(SOURCES)
8+
index.js: $(SOURCES)
99
@rollup $(CURDIR)/src/index.js \
1010
--config $(ROOT)/bundle_config.js \
1111
--banner "/* $(PACKAGE)@$(VERSION) */" \
@@ -24,6 +24,6 @@ compat.js: $(SOURCES)
2424
@echo -e " $(OK) $@ built"
2525

2626
clean:
27-
@rm -f $(PACKAGE).js compat.js
27+
@rm -f index.js compat.js
2828
@rm -rf .nyc_output coverage
2929
@echo -e " $(OK) clean"

fluent-langneg/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "fluent-langneg",
2+
"name": "@fluent/langneg",
33
"description": "Language Negotiation API for Fluent",
44
"version": "0.3.0",
55
"homepage": "https://projectfluent.org",
@@ -18,7 +18,7 @@
1818
"directories": {
1919
"lib": "./src"
2020
},
21-
"main": "./fluent-langneg.js",
21+
"main": "./index.js",
2222
"module": "./src/index.js",
2323
"repository": {
2424
"type": "git",

0 commit comments

Comments
 (0)