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

@nextcloud/l10n

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextcloud/l10n - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

CHANGELOG.md

2

dist/doc/assets/js/search.js
var typedoc = typedoc || {};
typedoc.search = typedoc.search || {};
typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","64":"Function","256":"Interface","1024":"Property"},"rows":[{"id":0,"kind":1,"name":"\"index\"","url":"modules/_index_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"TranslationOptions","url":"interfaces/_index_.translationoptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"index\""},{"id":2,"kind":1024,"name":"escaped","url":"interfaces/_index_.translationoptions.html#escaped","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"index\".TranslationOptions"},{"id":3,"kind":32,"name":"OC","url":"modules/_index_.html#oc","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"index\""},{"id":4,"kind":32,"name":"window","url":"modules/_index_.html#window","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"index\""},{"id":5,"kind":64,"name":"getLocale","url":"modules/_index_.html#getlocale","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""},{"id":6,"kind":64,"name":"getLanguage","url":"modules/_index_.html#getlanguage","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""},{"id":7,"kind":64,"name":"translate","url":"modules/_index_.html#translate","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""},{"id":8,"kind":64,"name":"translatePlural","url":"modules/_index_.html#translateplural","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""},{"id":9,"kind":64,"name":"getFirstDay","url":"modules/_index_.html#getfirstday","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""},{"id":10,"kind":64,"name":"getDayNames","url":"modules/_index_.html#getdaynames","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""},{"id":11,"kind":64,"name":"getDayNamesShort","url":"modules/_index_.html#getdaynamesshort","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""},{"id":12,"kind":64,"name":"getDayNamesMin","url":"modules/_index_.html#getdaynamesmin","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""},{"id":13,"kind":64,"name":"getMonthNames","url":"modules/_index_.html#getmonthnames","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""},{"id":14,"kind":64,"name":"getMonthNamesShort","url":"modules/_index_.html#getmonthnamesshort","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"index\""}]};
typedoc.search.data = {"kinds":{"64":"Function"},"rows":[{"id":0,"kind":64,"name":"getLocale","url":"globals.html#getlocale","classes":"tsd-kind-function"},{"id":1,"kind":64,"name":"getLanguage","url":"globals.html#getlanguage","classes":"tsd-kind-function"},{"id":2,"kind":64,"name":"translate","url":"globals.html#translate","classes":"tsd-kind-function"},{"id":3,"kind":64,"name":"translatePlural","url":"globals.html#translateplural","classes":"tsd-kind-function"},{"id":4,"kind":64,"name":"getFirstDay","url":"globals.html#getfirstday","classes":"tsd-kind-function"},{"id":5,"kind":64,"name":"getDayNames","url":"globals.html#getdaynames","classes":"tsd-kind-function"},{"id":6,"kind":64,"name":"getDayNamesShort","url":"globals.html#getdaynamesshort","classes":"tsd-kind-function"},{"id":7,"kind":64,"name":"getDayNamesMin","url":"globals.html#getdaynamesmin","classes":"tsd-kind-function"},{"id":8,"kind":64,"name":"getMonthNames","url":"globals.html#getmonthnames","classes":"tsd-kind-function"},{"id":9,"kind":64,"name":"getMonthNamesShort","url":"globals.html#getmonthnamesshort","classes":"tsd-kind-function"}]};

@@ -10,3 +10,3 @@ /**

interface TranslationOptions {
escaped?: boolean;
escape?: boolean;
}

@@ -19,7 +19,7 @@ /**

* @param {object} vars map of placeholder key to value
* @param {Number} number to replace %n with
* @param {number} number to replace %n with
* @param {object} [options] options object
* @return {string}
*/
export declare function translate(app: string, text: string, vars?: object, count?: Number, options?: TranslationOptions): string;
export declare function translate(app: string, text: string, vars?: object, count?: number, options?: TranslationOptions): string;
/**

@@ -36,3 +36,3 @@ * Translate a plural string

*/
export declare function translatePlural(app: string, textSingular: string, textPlural: string, count: Number, vars?: object, options?: TranslationOptions): string;
export declare function translatePlural(app: string, textSingular: string, textPlural: string, count: number, vars?: object, options?: TranslationOptions): string;
/**

@@ -43,33 +43,33 @@ * Get the first day of the week

*/
export declare function getFirstDay(): Number;
export declare function getFirstDay(): number;
/**
* Get a list of day names (full names)
*
* @return {String[]}
* @return {string[]}
*/
export declare function getDayNames(): String[];
export declare function getDayNames(): string[];
/**
* Get a list of day names (short names)
*
* @return {String[]}
* @return {string[]}
*/
export declare function getDayNamesShort(): String[];
export declare function getDayNamesShort(): string[];
/**
* Get a list of day names (minified names)
*
* @return {String[]}
* @return {string[]}
*/
export declare function getDayNamesMin(): String[];
export declare function getDayNamesMin(): string[];
/**
* Get a list of month names (full names)
*
* @return {String[]}
* @return {string[]}
*/
export declare function getMonthNames(): String[];
export declare function getMonthNames(): string[];
/**
* Get a list of month names (short names)
*
* @return {String[]}
* @return {string[]}
*/
export declare function getMonthNamesShort(): String[];
export declare function getMonthNamesShort(): string[];
export {};

@@ -50,3 +50,3 @@ "use strict";

* @param {object} vars map of placeholder key to value
* @param {Number} number to replace %n with
* @param {number} number to replace %n with
* @param {object} [options] options object

@@ -102,3 +102,3 @@ * @return {string}

*
* @return {String[]}
* @return {string[]}
*/

@@ -118,3 +118,3 @@

*
* @return {String[]}
* @return {string[]}
*/

@@ -134,3 +134,3 @@

*
* @return {String[]}
* @return {string[]}
*/

@@ -150,3 +150,3 @@

*
* @return {String[]}
* @return {string[]}
*/

@@ -166,3 +166,3 @@

*
* @return {String[]}
* @return {string[]}
*/

@@ -169,0 +169,0 @@

@@ -31,3 +31,3 @@ /// <reference types="@nextcloud/typings" />

interface TranslationOptions {
escaped?: boolean
escape?: boolean
}

@@ -41,7 +41,7 @@

* @param {object} vars map of placeholder key to value
* @param {Number} number to replace %n with
* @param {number} number to replace %n with
* @param {object} [options] options object
* @return {string}
*/
export function translate(app: string, text: string, vars?: object, count?: Number, options?: TranslationOptions): string {
export function translate(app: string, text: string, vars?: object, count?: number, options?: TranslationOptions): string {
if (typeof OC === 'undefined') {

@@ -67,3 +67,3 @@ console.warn('No OC found')

export function translatePlural(app: string, textSingular: string, textPlural: string, count: Number, vars?: object, options?: TranslationOptions): string {
export function translatePlural(app: string, textSingular: string, textPlural: string, count: number, vars?: object, options?: TranslationOptions): string {
if (typeof OC === 'undefined') {

@@ -82,3 +82,3 @@ console.warn('No OC found')

*/
export function getFirstDay(): Number {
export function getFirstDay(): number {
if (typeof window.firstDay === 'undefined') {

@@ -95,5 +95,5 @@ console.warn('No firstDay found')

*
* @return {String[]}
* @return {string[]}
*/
export function getDayNames(): String[] {
export function getDayNames(): string[] {
if (typeof window.dayNames === 'undefined') {

@@ -110,5 +110,5 @@ console.warn('No dayNames found')

*
* @return {String[]}
* @return {string[]}
*/
export function getDayNamesShort(): String[] {
export function getDayNamesShort(): string[] {
if (typeof window.dayNamesShort === 'undefined') {

@@ -125,5 +125,5 @@ console.warn('No dayNamesShort found')

*
* @return {String[]}
* @return {string[]}
*/
export function getDayNamesMin(): String[] {
export function getDayNamesMin(): string[] {
if (typeof window.dayNamesMin === 'undefined') {

@@ -140,5 +140,5 @@ console.warn('No dayNamesMin found')

*
* @return {String[]}
* @return {string[]}
*/
export function getMonthNames(): String[] {
export function getMonthNames(): string[] {
if (typeof window.monthNames === 'undefined') {

@@ -155,5 +155,5 @@ console.warn('No monthNames found')

*
* @return {String[]}
* @return {string[]}
*/
export function getMonthNamesShort(): String[] {
export function getMonthNamesShort(): string[] {
if (typeof window.monthNamesShort === 'undefined') {

@@ -160,0 +160,0 @@ console.warn('No monthNamesShort found')

{
"name": "@nextcloud/l10n",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -9,3 +9,3 @@ "main": "dist/index.js",

"build": "babel ./lib --out-dir dist --extensions '.ts,.tsx' --source-maps && tsc --emitDeclarationOnly",
"build:doc": "typedoc --out dist/doc lib && touch dist/doc/.nojekyll",
"build:doc": "typedoc --excludeNotExported --mode file --out dist/doc lib/index.ts && touch dist/doc/.nojekyll",
"check-types": "tsc",

@@ -27,15 +27,15 @@ "dev": "babel ./lib --out-dir dist --extensions '.ts,.tsx' --watch",

"dependencies": {
"core-js": "3.5.0"
"core-js": "3.6.1"
},
"devDependencies": {
"@babel/cli": "7.7.5",
"@babel/core": "7.7.5",
"@babel/preset-env": "7.7.6",
"@babel/preset-typescript": "7.7.4",
"@babel/cli": "7.7.7",
"@babel/core": "7.7.7",
"@babel/preset-env": "7.7.7",
"@babel/preset-typescript": "7.7.7",
"@nextcloud/browserslist-config": "^1.0.0",
"@nextcloud/typings": "^0.1.3",
"@nextcloud/typings": "^0.1.6",
"babel-jest": "^24.9.0",
"jest": "^24.9.0",
"typedoc": "^0.15.5",
"typescript": "3.7.3"
"typedoc": "^0.15.6",
"typescript": "3.7.4"
},

@@ -42,0 +42,0 @@ "browserslist": [

# @nextcloud/l10n
Nextcloud L10n helpers for apps and libraries
[![Build Status](https://travis-ci.com/nextcloud/nextcloud-l10n.svg?branch=master)](https://travis-ci.com/nextcloud/nextcloud-l10n)
[![npm](https://img.shields.io/npm/v/@nextcloud/l10n.svg)](https://www.npmjs.com/package/@nextcloud/l10n)
[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://nextcloud.github.io/nextcloud-l10n/)
Nextcloud L10n helpers for apps and libraries.
## Installation
```
npm i -S @nextcloud/l10n
```
## Usage

@@ -5,0 +16,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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