CultureInfo zur Culture hinzugefügt und die Benutzeroberfläche aktualisiert, um den NativeName für eine verbesserte Lokalisierung anzuzeigen.

This commit is contained in:
Developer 02
2024-05-28 16:19:01 +02:00
parent 9fa5827b09
commit 3b27260b14
9 changed files with 38 additions and 16 deletions

View File

@@ -10,7 +10,7 @@ const ActionType = {
}
class App {
constructor(envelopeKey, envelopeReceiver, documentBytes, licenseKey, container) {
constructor(envelopeKey, envelopeReceiver, documentBytes, licenseKey, locale, container) {
this.container = container ?? `#${this.constructor.name.toLowerCase()}`;
this.envelopeKey = envelopeKey
@@ -25,6 +25,7 @@ class App {
this.envelopeReceiver = envelopeReceiver;
this.documentBytes = documentBytes;
this.licenseKey = licenseKey;
this.locale = locale;
}
// This function will be called from the ShowEnvelope.razor page

View File

@@ -14,8 +14,9 @@
// Load the PSPDFKit UI by setting a target element as the container to render in
// and a arraybuffer which represents the document that should be displayed.
loadPSPDFKit(arrayBuffer, container, licenseKey) {
loadPSPDFKit(arrayBuffer, container, licenseKey, locale) {
return PSPDFKit.load({
locale: locale,
licenseKey: licenseKey,
styleSheets: ['/css/site.css'],
container: container,