mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-21 14:18:36 +00:00
Remove unused inherit_locales from flavour definitions (#3044)
This commit is contained in:
@@ -14,9 +14,6 @@ signed_in_preload:
|
|||||||
# language tags and whose default exports are a messages object.
|
# language tags and whose default exports are a messages object.
|
||||||
locales: locales
|
locales: locales
|
||||||
|
|
||||||
# (OPTIONAL) Which flavour to inherit locales from
|
|
||||||
inherit_locales: vanilla
|
|
||||||
|
|
||||||
# (OPTIONAL) A file to use as the preview screenshot for the flavour,
|
# (OPTIONAL) A file to use as the preview screenshot for the flavour,
|
||||||
# or an array thereof. These are the full path from `app/javascript/`.
|
# or an array thereof. These are the full path from `app/javascript/`.
|
||||||
screenshot: flavours/glitch/images/glitch-preview.png
|
screenshot: flavours/glitch/images/glitch-preview.png
|
||||||
|
|||||||
@@ -14,12 +14,11 @@ const skinFiles = glob.sync('app/javascript/skins/*/*');
|
|||||||
const flavours = {};
|
const flavours = {};
|
||||||
|
|
||||||
flavourFiles.forEach((flavourFile) => {
|
flavourFiles.forEach((flavourFile) => {
|
||||||
const { locales, inherit_locales, pack_directory } = load(readFileSync(flavourFile), 'utf8');
|
const { locales, pack_directory } = load(readFileSync(flavourFile), 'utf8');
|
||||||
|
|
||||||
flavours[basename(dirname(flavourFile))] = {
|
flavours[basename(dirname(flavourFile))] = {
|
||||||
name: basename(dirname(flavourFile)),
|
name: basename(dirname(flavourFile)),
|
||||||
locales: locales ? join(dirname(flavourFile), locales) : null,
|
locales: locales ? join(dirname(flavourFile), locales) : null,
|
||||||
inherit_locales,
|
|
||||||
pack_directory: pack_directory,
|
pack_directory: pack_directory,
|
||||||
skin: {},
|
skin: {},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user