Javascript intl8n flavour support
This commit is contained in:
7
app/javascript/flavours/glitch/locales/ar.js
Normal file
7
app/javascript/flavours/glitch/locales/ar.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/ar.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/bg.js
Normal file
7
app/javascript/flavours/glitch/locales/bg.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/bg.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/ca.js
Normal file
7
app/javascript/flavours/glitch/locales/ca.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/ca.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/de.js
Normal file
7
app/javascript/flavours/glitch/locales/de.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/de.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
import inherited from 'mastodon/locales/en.json';
|
||||
|
||||
const messages = {
|
||||
"getting_started.open_source_notice": "Glitchsoc is free open source software forked from {Mastodon}. You can contribute or report issues on GitHub at {github}.",
|
||||
"layout.auto": "Auto",
|
||||
"layout.current_is": "Your current layout is:",
|
||||
@ -42,5 +44,7 @@
|
||||
"notification_purge.btn_all": "Select\nall",
|
||||
"notification_purge.btn_none": "Select\nnone",
|
||||
"notification_purge.btn_invert": "Invert\nselection",
|
||||
"notification_purge.btn_apply": "Clear\nselected"
|
||||
}
|
||||
"notification_purge.btn_apply": "Clear\nselected",
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/eo.js
Normal file
7
app/javascript/flavours/glitch/locales/eo.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/eo.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/es.js
Normal file
7
app/javascript/flavours/glitch/locales/es.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/es.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/fa.js
Normal file
7
app/javascript/flavours/glitch/locales/fa.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/fa.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/fi.js
Normal file
7
app/javascript/flavours/glitch/locales/fi.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/fi.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/fr.js
Normal file
7
app/javascript/flavours/glitch/locales/fr.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/fr.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/he.js
Normal file
7
app/javascript/flavours/glitch/locales/he.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/he.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/hr.js
Normal file
7
app/javascript/flavours/glitch/locales/hr.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/hr.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/hu.js
Normal file
7
app/javascript/flavours/glitch/locales/hu.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/hu.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/id.js
Normal file
7
app/javascript/flavours/glitch/locales/id.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/id.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/io.js
Normal file
7
app/javascript/flavours/glitch/locales/io.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/io.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/it.js
Normal file
7
app/javascript/flavours/glitch/locales/it.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/it.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/ja.js
Normal file
7
app/javascript/flavours/glitch/locales/ja.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/ja.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/ko.js
Normal file
7
app/javascript/flavours/glitch/locales/ko.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/ko.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/nl.js
Normal file
7
app/javascript/flavours/glitch/locales/nl.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/nl.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/no.js
Normal file
7
app/javascript/flavours/glitch/locales/no.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/no.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/oc.js
Normal file
7
app/javascript/flavours/glitch/locales/oc.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/oc.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
import inherited from 'mastodon/locales/pl.json';
|
||||
|
||||
const messages = {
|
||||
"getting_started.open_source_notice": "Glitchsoc jest wolnym i otwartoźródłowym forkiem oprogramowania {Mastodon}. Możesz współtworzyć projekt lub zgłaszać błędy na GitHubie pod adresem {github}.",
|
||||
"layout.auto": "Automatyczny",
|
||||
"layout.current_is": "Twój obecny układ to:",
|
||||
@ -41,4 +43,6 @@
|
||||
"notification_purge.btn_none": "Odznacz\nwszystkie",
|
||||
"notification_purge.btn_invert": "Odwróć\nzaznaczenie",
|
||||
"notification_purge.btn_apply": "Usuń\nzaznaczone"
|
||||
}
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/pt-BR.js
Normal file
7
app/javascript/flavours/glitch/locales/pt-BR.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/pt-BR.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/pt.js
Normal file
7
app/javascript/flavours/glitch/locales/pt.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/pt.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/ru.js
Normal file
7
app/javascript/flavours/glitch/locales/ru.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/ru.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/sv.js
Normal file
7
app/javascript/flavours/glitch/locales/sv.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/sv.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/th.js
Normal file
7
app/javascript/flavours/glitch/locales/th.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/th.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/tr.js
Normal file
7
app/javascript/flavours/glitch/locales/tr.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/tr.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/uk.js
Normal file
7
app/javascript/flavours/glitch/locales/uk.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/uk.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/zh-CN.js
Normal file
7
app/javascript/flavours/glitch/locales/zh-CN.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/zh-CN.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/zh-HK.js
Normal file
7
app/javascript/flavours/glitch/locales/zh-HK.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/zh-HK.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
7
app/javascript/flavours/glitch/locales/zh-TW.js
Normal file
7
app/javascript/flavours/glitch/locales/zh-TW.js
Normal file
@ -0,0 +1,7 @@
|
||||
import inherited from 'mastodon/locales/zh-TW.json';
|
||||
|
||||
const messages = {
|
||||
// No translations available.
|
||||
};
|
||||
|
||||
export default Object.assign({}, inherited, messages);
|
@ -20,6 +20,12 @@ pack:
|
||||
settings:
|
||||
share: packs/share.js
|
||||
|
||||
# (OPTIONAL) The directory which contains localization files for
|
||||
# the flavour, relative to this directory. The contents of this
|
||||
# directory must be `.js` or `.json` files whose names correspond to
|
||||
# language tags and whose default exports are a messages object.
|
||||
locales: locales
|
||||
|
||||
# (OPTIONAL) The directory which contains the pack files.
|
||||
# Defaults to the theme directory (`app/javascript/themes/[theme]`),
|
||||
# which should be sufficient for like 99% of use-cases lol.
|
||||
|
@ -20,13 +20,17 @@ pack:
|
||||
settings:
|
||||
share: share.js
|
||||
|
||||
# (OPTIONAL) The directory which contains localization files for
|
||||
# the flavour, relative to this directory.
|
||||
locales: ../../mastodon/locales
|
||||
|
||||
# (OPTIONAL) The directory which contains the pack files.
|
||||
# Defaults to the theme directory (`app/javascript/themes/[theme]`),
|
||||
# but in the case of the vanilla Mastodon theme the pack files are
|
||||
# Defaults to this directory (`app/javascript/flavour/[flavour]`),
|
||||
# but in the case of the vanilla Mastodon flavour the pack files are
|
||||
# somewhere else.
|
||||
pack_directory: app/javascript/packs
|
||||
|
||||
# (OPTIONAL) By default the theme will fallback to the default theme
|
||||
# (OPTIONAL) By default the theme will fallback to the default flavour
|
||||
# if a particular pack is not provided. You can specify different
|
||||
# fallbacks here, or disable fallback behaviours altogether by
|
||||
# specifying a `null` value.
|
||||
|
Reference in New Issue
Block a user