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

node-gettext

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-gettext - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

index.js

@@ -222,5 +222,2 @@

this.domains[domain] = new GettextDomain(data);
if(!this.current_textdomain){
this.current_textdomain = this.domains[domain];
}
}

@@ -231,2 +228,4 @@

this.current_textdomain = this.domains[domain];
}else{
this.current_textdomain = false;
}

@@ -233,0 +232,0 @@ }

2

package.json
{
"name": "node-gettext",
"description": "Gettext client for Node.js to use .mo files for I18N",
"version": "0.1.0",
"version": "0.1.1",
"author" : "Andris Reinman",

@@ -6,0 +6,0 @@ "maintainers":[

@@ -30,4 +30,2 @@ # node-gettext

The first language added will become the default language for Gettext functions.
### Change default language - textdomain(domain)

@@ -39,3 +37,3 @@

### Load a string from default langauge file
### Load a string from default language file

@@ -46,3 +44,3 @@ *gettext(msgid)*

### Load a string from a specific langauge file
### Load a string from a specific language file

@@ -53,3 +51,3 @@ *dgettext(domain, msgid)*

### Load a plural string from default langauge file
### Load a plural string from default language file

@@ -89,1 +87,5 @@ *ngettext(msgid, msgid_plural, count)*

gt.dnpgettext("et", "menu items", "%d Recent File", "%d Recent Files", 3);
## License
MIT
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