Skip to content

weglot/languages

Repository files navigation

Weglot Languages

Flags

Available on cdn.weglot.com

https://cdn.weglot.com/flags/{flag_type}/{country_flag_code}.svg

Where flag_type is one of

  • rectangle_mat
  • shiny
  • circle
  • square

And country_flag_code is country code: gb

Examples:

JS usage

CommonJS

const { languages } = require("@weglot/languages");

ESM

import { languages } from "@weglot/languages";

How to make changes

After making a change on this repo, in order to make them available you need to do the followings:

  • Change $languages-repository-version in assets/css/styles.scss with expected new version
  • Run npm run build
  • Tag your commit with expected new version