mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
Merge pull request #216 from SigmundurMorkore/master
Add Faroese Language Support
This commit is contained in:
commit
56c6af2d1e
36
Dockerfile
36
Dockerfile
@ -1,17 +1,39 @@
|
||||
FROM node:12.18-alpine
|
||||
|
||||
# Build image
|
||||
FROM node:12.18-alpine AS build
|
||||
ARG DATABASE_TYPE
|
||||
|
||||
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \
|
||||
DATABASE_TYPE=$DATABASE_TYPE
|
||||
WORKDIR /build
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 3000
|
||||
COPY package.json yarn.lock /build/
|
||||
|
||||
COPY package.json yarn.lock /app/
|
||||
# Install only the production dependencies
|
||||
RUN yarn install --production --frozen-lockfile
|
||||
|
||||
# Cache these modules for production
|
||||
RUN cp -R node_modules/ prod_node_modules/
|
||||
|
||||
# Install development dependencies
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY . /app
|
||||
COPY . /build
|
||||
RUN yarn build
|
||||
|
||||
# Production image
|
||||
FROM node:12.18-alpine AS production
|
||||
WORKDIR /app
|
||||
|
||||
# Copy cached dependencies
|
||||
COPY --from=build /build/prod_node_modules ./node_modules
|
||||
|
||||
# Copy generated Prisma client
|
||||
COPY --from=build /build/node_modules/.prisma/ ./node_modules/.prisma/
|
||||
|
||||
COPY --from=build /build/yarn.lock /build/package.json ./
|
||||
COPY --from=build /build/.next ./.next
|
||||
COPY --from=build /build/public ./public
|
||||
|
||||
USER node
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["yarn", "start"]
|
||||
|
95
lang/fo-FO.json
Normal file
95
lang/fo-FO.json
Normal file
@ -0,0 +1,95 @@
|
||||
{
|
||||
"button.add-account": "Ger brúkara",
|
||||
"button.add-website": "Legg heimasíðu til",
|
||||
"button.back": "Aftur",
|
||||
"button.cancel": "Strika",
|
||||
"button.change-password": "Broyt loyniorð",
|
||||
"button.copy-to-clipboard": "Kopier til clipboard",
|
||||
"button.date-range": "Vel dato",
|
||||
"button.delete": "Sletta",
|
||||
"button.edit": "Ger broyting",
|
||||
"button.login": "Rita inn",
|
||||
"button.more": "Meira",
|
||||
"button.refresh": "Endurskapa",
|
||||
"button.reset": "Nulstilla",
|
||||
"button.save": "Goym",
|
||||
"button.single-day": "Einkultur dagur",
|
||||
"button.view-details": "Vís upplýsingar",
|
||||
"label.accounts": "Brúkarar",
|
||||
"label.administrator": "Administrator",
|
||||
"label.confirm-password": "Vátta loyniorð",
|
||||
"label.current-password": "Núverandi loyniorð",
|
||||
"label.custom-range": "Tillaga spenni",
|
||||
"label.dashboard": "Yvirlitsskíggi",
|
||||
"label.default-date-range": "Standard dato",
|
||||
"label.domain": "Økisnavn",
|
||||
"label.enable-share-url": "Virkja deili leinki",
|
||||
"label.invalid": "Ógilda",
|
||||
"label.invalid-domain": "Ógilt økisnavn",
|
||||
"label.last-days": "Seinastu {x} dagarnar",
|
||||
"label.last-hours": "Seinastu {x} tímanar",
|
||||
"label.logged-in-as": "Ritaður inn sum {username}",
|
||||
"label.logout": "Rita út",
|
||||
"label.name": "Navn",
|
||||
"label.new-password": "Nýtt loyniorð",
|
||||
"label.password": "Loyniorð",
|
||||
"label.passwords-dont-match": "Loyniorðini eru ikki eins",
|
||||
"label.profile": "Brúkari",
|
||||
"label.required": "Krav",
|
||||
"label.settings": "Stillingar",
|
||||
"label.this-month": "Hendan mánan",
|
||||
"label.this-week": "Hesa vikuna",
|
||||
"label.this-year": "Hetta árið",
|
||||
"label.timezone": "Tíðarsona",
|
||||
"label.today": "Í dag",
|
||||
"label.unknown": "Ókent",
|
||||
"label.username": "Brúkaranavn",
|
||||
"label.websites": "Heimasíður",
|
||||
"message.active-users": "{x} í løtuni {x, plural, one {vitjandi} other { vitjandi }}",
|
||||
"message.confirm-delete": "Ert tú sikkur at tú ynskir at sletta {target}?",
|
||||
"message.copied": "Kopiera!",
|
||||
"message.delete-warning": "Øll data ið er knýtt at verður eisini sletta.",
|
||||
"message.failure": "Okkurt bleiv gali.",
|
||||
"message.get-share-url": "Fá leinku sum tú kanst deila",
|
||||
"message.get-tracking-code": "Fá sporings kotu",
|
||||
"message.go-to-settings": "Far til stillingar",
|
||||
"message.incorrect-username-password": "Skeivt brúkaranavn/loyniorð.",
|
||||
"message.no-data-available": "Einki data tøk.",
|
||||
"message.no-websites-configured": "Tú hevur ongar heimasíður stillaða til.",
|
||||
"message.page-not-found": "Síðan bleiv ikki funnin.",
|
||||
"message.powered-by": "Powered by {name}",
|
||||
"message.save-success": "Goymt.",
|
||||
"message.share-url": "Hetta er tann almenna leinkan av {target}.",
|
||||
"message.track-stats": "Fyri at spora hagtøl fyri {target}, koyr kotuna í {head} partin á tínari heimasíðu.",
|
||||
"message.type-delete": "Skriva {delete} í feltið fyri at vátta",
|
||||
"metrics.actions": "Gerðir",
|
||||
"metrics.average-visit-time": "Miðal vitjurnartíð ",
|
||||
"metrics.bounce-rate": "Bounce prosenttal",
|
||||
"metrics.browsers": "Kagar",
|
||||
"metrics.countries": "Lond",
|
||||
"metrics.device.desktop": "Borðtelda",
|
||||
"metrics.device.laptop": "Fartelda",
|
||||
"metrics.device.mobile": "Telefon",
|
||||
"metrics.device.tablet": "Teldil",
|
||||
"metrics.devices": "Tóleindir",
|
||||
"metrics.events": "Hendingar/tiltøk",
|
||||
"metrics.filter.combined": "Samansett",
|
||||
"metrics.filter.domain-only": "Bara økisnavn",
|
||||
"metrics.filter.raw": "Óviðgjørt",
|
||||
"metrics.operating-systems": "Stýrikervir",
|
||||
"metrics.page-views": "Opnaðar síðir",
|
||||
"metrics.pages": "Síðir",
|
||||
"metrics.referrers": "Framsendingar",
|
||||
"metrics.unique-visitors": "Einsýna vitjanir",
|
||||
"metrics.views": "Vitjanir",
|
||||
"metrics.visitors": "Vitjandi",
|
||||
"title.add-account": "Ger brúkara",
|
||||
"title.add-website": "Legg heimasíðu avtrat",
|
||||
"title.change-password": "Skift loyniorð",
|
||||
"title.delete-account": "Sletta brúkara",
|
||||
"title.delete-website": "Sletta heimasíðu",
|
||||
"title.edit-account": "Broyt brúkara",
|
||||
"title.edit-website": "Broyt heimasíðu",
|
||||
"title.share-url": "Deil leinku",
|
||||
"title.tracking-code": "Spori kota"
|
||||
}
|
@ -13,6 +13,7 @@ import mnMNMessages from 'lang-compiled/mn-MN.json';
|
||||
import daMessages from 'lang-compiled/da-DK.json';
|
||||
import svMessages from 'lang-compiled/sv-SE.json';
|
||||
import grMessages from 'lang-compiled/el-GR.json';
|
||||
import foMessages from 'lang-compiled/fo-FO.json';
|
||||
|
||||
export const messages = {
|
||||
'en-US': enMessages,
|
||||
@ -28,6 +29,7 @@ export const messages = {
|
||||
'da-DK': daMessages,
|
||||
'sv-SE': svMessages,
|
||||
'el-GR': grMessages,
|
||||
'fo-FO': foMessages,
|
||||
};
|
||||
|
||||
export const dateLocales = {
|
||||
@ -44,6 +46,7 @@ export const dateLocales = {
|
||||
'fr-FR': fr,
|
||||
'mn-MN': enUS,
|
||||
'el-GR': el,
|
||||
'fo-FO': da,
|
||||
};
|
||||
|
||||
export const menuOptions = [
|
||||
@ -60,6 +63,7 @@ export const menuOptions = [
|
||||
{ label: 'Русский', value: 'ru-RU', display: 'ru' },
|
||||
{ label: 'Svenska', value: 'sv-SE', display: 'sv' },
|
||||
{ label: 'Turkish', value: 'tr-TR', display: 'tr' },
|
||||
{ label: 'Føroyskt', value: 'fo-FO', display: 'fø' },
|
||||
];
|
||||
|
||||
export function dateFormat(date, str, locale) {
|
||||
|
Loading…
Reference in New Issue
Block a user