Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion site/src/lib/components/tabs/Tab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,25 @@
<div class="flex items-center justify-center h-full">
<div class="text-center text-gray-300">
<h1 class="text-3xl font-bold mb-4">About Bible Computer</h1>
<p class="text-lg">A modern Bible reading application built with SvelteKit and Effect.</p>
<p class="text-lg mb-6">A modern Bible reading application built with SvelteKit and Effect.</p>
<div class="flex justify-center gap-6 text-lg">
<a
href="https://github.com/biblecomputer/bible"
target="_blank"
rel="noopener noreferrer"
class="text-blue-400 hover:text-blue-300 underline"
>
GitHub
</a>
<a
href="https://x.com/biblecomputer"
target="_blank"
rel="noopener noreferrer"
class="text-blue-400 hover:text-blue-300 underline"
>
X
</a>
</div>
</div>
</div>
{:else if app.app._tag === "ChooseApp"}
Expand Down
10 changes: 6 additions & 4 deletions site/src/lib/translations/availableTranslations.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import type { Translation } from "$lib/translations/translation";
import { kjvTranslation } from "$lib/translations/kjv";
import { svTranslation } from "$lib/translations/sv";
import { bsbTranslation } from "$lib/translations/bsb";

export const availableTranslations: Translation[] = [
bsbTranslation,
kjvTranslation,
svTranslation
];
Expand All @@ -15,7 +17,7 @@ export const getTranslationByShortName = (shortName: string): Translation | unde
export const getDefaultTranslation = (): Translation => {
if (typeof navigator === 'undefined') {
// Server-side rendering fallback
return kjvTranslation;
return bsbTranslation;
}

// Get browser language (e.g., "nl", "nl-NL", "en-US", "en-GB")
Expand All @@ -27,9 +29,9 @@ export const getDefaultTranslation = (): Translation => {
return svTranslation;
}

// Default to KJV for English and all other languages
return kjvTranslation;
// Default to BSB for English and all other languages
return bsbTranslation;
};

// Static default for backward compatibility
export const defaultTranslation = kjvTranslation;
export const defaultTranslation = bsbTranslation;
14 changes: 14 additions & 0 deletions site/src/lib/translations/bsb.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Cloud } from "$lib/translations/storage";
import { Translation, TranslationMetadata } from "$lib/translations/translation";

// Berean Bible translation - metadata with cloud storage
export const bsbTranslation = Translation({
metadata: TranslationMetadata({
name: "Berean Bible",
shortName: "BSB",
language: "English"
}),
content: Cloud({
url: "https://raw.githubusercontent.com/biblecomputer/translations/refs/heads/main/v0/english/bsb.json"
})
});