Skip to content

Commit

Permalink
Add an example with multilingual metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
camillevilla committed Dec 4, 2020
1 parent 2db642d commit 579f0cb
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import Mirador from 'mirador/dist/es/src/index';
import examplePlugin from './plugins/example_plugin';

// An example with a multilingual manifest. Metadata is available in English and German.
const config = {
id: 'mirador-viewer',
windows: [
{
manifestId: 'https://purl.stanford.edu/fr426cg9537/iiif/manifest',
}
],
id: 'mirador-viewer',
language: 'de', // Use German as the default UI language.
// If metadata is available in the UI language, it will be displayed in the sidebar
windows: [{
manifestId: 'https://iiif.hab.de/object/mss_272-helmst/manifest.json',
}],
window: {
sideBarOpen: true,
showLocalePicker: true, // The metadata locale picker is hidden by default
},
};

const plugins = [];

Mirador.viewer(config, plugins);
Mirador.viewer(config, plugins);

0 comments on commit 579f0cb

Please sign in to comment.