Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
locizify-ssg
Advanced tools
Node.js script to render and generate website pages that uses locizify, to optimize SEO
EXPERIMENTAL
This package helps to generate website pages on server side that uses locizify. This may help to improve SEO, etc.
Source can be loaded via npm.
# npm package
$ npm install locizify-ssg
Usage via code:
import ssg from 'locizify-ssg'
ssg('index.html', ['de', 'it'], '{{lng}}.html', {
// debug: true,
fallbackLng: 'en',
backend: {
projectId: '123aa5aa-4660-4154-b6d9-907dbef10bb2',
version: 'production'
},
namespace: 'landingpage'
})
// or
ssg('index.html', 'de', 'de.html', {
// debug: true,
fallbackLng: 'en',
backend: {
projectId: '123aa5aa-4660-4154-b6d9-907dbef10bb2',
version: 'production'
},
namespace: 'landingpage'
})
Usage via CLI:
npm install locizify-ssg -g
# -i is the input file
# -o is the output file
# -l the languages
# -s the locizify options
locizify-ssg -i /Users/user/my/index.html -o /Users/user/my/de.html -l de -s "{\"fallbackLng\":\"en\",\"backend\":{\"projectId\":\"123aa5aa-4660-4154-b6d9-907dbef10bb2\",\"version\":\"production\"},\"namespace\":\"landingpage\"}"
# or for multiple languages
locizify-ssg -i /Users/user/my/index.html -o /Users/user/my/{{lng}}.html -l de,it,fr -s "{\"fallbackLng\":\"en\",\"backend\":{\"projectId\":\"123aa5aa-4660-4154-b6d9-907dbef10bb2\",\"version\":\"production\"},\"namespace\":\"landingpage\"}"
FAQs
Node.js script to render and generate website pages that uses locizify, to optimize SEO
The npm package locizify-ssg receives a total of 0 weekly downloads. As such, locizify-ssg popularity was classified as not popular.
We found that locizify-ssg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.